Skip to content

Commit 50e2362

Browse files
Merge pull request #12 from Devsh-Graphics-Programming/renaming
Upstream Armageddon 1&2
2 parents 881deed + 885c086 commit 50e2362

File tree

551 files changed

+6038
-6413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

551 files changed

+6038
-6413
lines changed

3rdparty/CMakeLists.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ set(BUILD_STATIC_LIBS ${_OLD_BUILD_STATIC_LIBS})
168168
set(BUILD_TESTING ${_OLD_BUILD_TESTING})
169169

170170
#gli
171-
option(_IRR_COMPILE_WITH_GLI_ "Build with GLI library" ON)
172-
if(_IRR_COMPILE_WITH_GLI_)
171+
option(_NBL_COMPILE_WITH_GLI_ "Build with GLI library" ON)
172+
if(_NBL_COMPILE_WITH_GLI_)
173173
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
174174
set(_OLD_BUILD_STATIC_LIBS ${BUILD_STATIC_LIBS})
175175
set(_OLD_BUILD_TESTING ${BUILD_TESTING})
@@ -235,13 +235,13 @@ add_library(aesGladman OBJECT
235235
aesGladman/sha1.c
236236
)
237237

238-
if (IRR_BUILD_CEGUI) # I absolutely hate and despise GLM
238+
if (NBL_BUILD_CEGUI) # I absolutely hate and despise GLM
239239
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
240240
set(_OLD_BUILD_STATIC_LIBS ${BUILD_STATIC_LIBS})
241241
set(BUILD_SHARED_LIBS OFF)
242242
set(BUILD_STATIC_LIBS OFF)
243243
option(GLM_TEST_ENABLE_CXX_14 "Enable C++ 14" ON)
244-
if (IRR_FAST_MATH)
244+
if (NBL_FAST_MATH)
245245
option(GLM_TEST_ENABLE_FAST_MATH "Enable fast math optimizations" ON)
246246
endif()
247247
option(GLM_TEST_ENABLE_SIMD_SSE4_2 "Enable SSE 4.2 optimizations" ON)
@@ -257,7 +257,7 @@ option(GLM_TEST_ENABLE "Build unit tests" OFF)
257257
set(BUILD_SHARED_LIBS ${_OLD_BUILD_SHARED_LIBS})
258258
set(BUILD_STATIC_LIBS ${_OLD_BUILD_STATIC_LIBS})
259259

260-
if (IRR_BUILD_MITSUBA_LOADER)
260+
if (NBL_BUILD_MITSUBA_LOADER)
261261
update_git_submodule(./libexpat)
262262

263263
option(BUILD_tools "EXPAT: build the xmlwf tool for expat library" OFF)
@@ -280,7 +280,7 @@ if (IRR_BUILD_MITSUBA_LOADER)
280280
set(MITSUBA_LOADER_DEPENDENT_LIBS ${MITSUBA_LOADER_DEPENDENT_LIBS} PARENT_SCOPE)
281281
endif()
282282

283-
if (IRR_BUILD_CEGUI)
283+
if (NBL_BUILD_CEGUI)
284284
update_git_submodule(./libexpat)
285285
update_git_submodule(./CEGUI/pcre)
286286
update_git_submodule(./CEGUI/glew)
@@ -407,7 +407,7 @@ if (IRR_BUILD_CEGUI)
407407
)
408408
endif()
409409

410-
if (IRR_BUILD_RADEON_RAYS)
410+
if (NBL_BUILD_RADEON_RAYS)
411411
update_git_submodule(./radeonrays)
412412

413413
option(RR_NO_TESTS "RADEON_RAYS: don't do tests" ON)
@@ -427,7 +427,7 @@ if (IRR_BUILD_RADEON_RAYS)
427427
set(RADEON_RAYS_DEPENDENT_LIBS ${RADEON_RAYS_DEPENDENT_LIBS} PARENT_SCOPE)
428428
endif()
429429

430-
if (IRR_BUILD_BULLET)
430+
if (NBL_BUILD_BULLET)
431431
update_git_submodule(./bullet3)
432432
set(BULLET_INCLUDE_PATH
433433
${CMAKE_CURRENT_SOURCE_DIR}/bullet3/src
@@ -437,11 +437,11 @@ if (IRR_BUILD_BULLET)
437437
endif()
438438

439439

440-
if (IRR_COMPILE_WITH_CUDA)
440+
if (NBL_COMPILE_WITH_CUDA)
441441
update_git_submodule(./jitify)
442442
endif()
443443

444-
set(IRR_3RDPARTY_TARGETS
444+
set(NBL_3RDPARTY_TARGETS
445445
lzma
446446
lz4
447447
aesGladman
@@ -466,13 +466,13 @@ set(IRR_3RDPARTY_TARGETS
466466
SPIRV-Tools
467467
SPIRV-Tools-opt )
468468
#TODO insert more targets that are conditionally built
469-
if (IRR_BUILD_MITSUBA_LOADER)
470-
list(APPEND IRR_3RDPARTY_TARGETS expat)
469+
if (NBL_BUILD_MITSUBA_LOADER)
470+
list(APPEND NBL_3RDPARTY_TARGETS expat)
471471
endif()
472472
if(ENABLE_HLSL)
473-
list(APPEND IRR_3RDPARTY_TARGETS HLSL)
473+
list(APPEND NBL_3RDPARTY_TARGETS HLSL)
474474
endif()
475-
foreach(trgt IN LISTS IRR_3RDPARTY_TARGETS)
475+
foreach(trgt IN LISTS NBL_3RDPARTY_TARGETS)
476476
set_property(TARGET ${trgt} PROPERTY
477477
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
478478
endforeach()

CMakeLists.txt

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ else()
1818
message(STATUS "Vulkan driver is not enabled")
1919
endif()
2020

21-
option(IRR_COMPILE_WITH_CUDA "Compile with CUDA interop?" OFF)
21+
option(NBL_COMPILE_WITH_CUDA "Compile with CUDA interop?" OFF)
2222

2323
# CUDA test
2424
include(CheckLanguage)
2525
check_language(CUDA)
2626
#if(NOT CMAKE_CUDA_COMPILER OR CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "9.0")
2727
if(NOT CMAKE_CUDA_COMPILER)
28-
if (IRR_COMPILE_WITH_CUDA)
28+
if (NBL_COMPILE_WITH_CUDA)
2929
#message(WARNING "CUDA not found or version (${CMAKE_CUDA_COMPILER_VERSION}) lower than 9.0 found, version 9.0+ needed for C++14 support.")
3030
message(WARNING "CUDA not found.")
3131
endif()
3232
else()
33-
if (IRR_COMPILE_WITH_CUDA)
33+
if (NBL_COMPILE_WITH_CUDA)
3434
enable_language(CUDA)
3535
else()
36-
message(STATUS "CUDA version 9.0+ found, you can enable the IRR_COMPILE_WITH_CUDA option.")
36+
message(STATUS "CUDA version 9.0+ found, you can enable the NBL_COMPILE_WITH_CUDA option.")
3737
endif()
3838
endif()
3939

4040
#
41-
get_filename_component(IRR_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
41+
get_filename_component(NBL_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
4242

4343
# Configure CCache if available
4444
find_program(CCACHE_FOUND ccache)
@@ -56,7 +56,7 @@ set(CMAKE_CODELITE_USE_TARGETS ON CACHE BOOL "")
5656
set(CMAKE_CXX_STANDARD 17)
5757
set(CMAKE_CXX_STANDARD_REQUIRED ON)
5858
# Cause CUDA is a special snowflake
59-
if (IRR_COMPILE_WITH_CUDA)
59+
if (NBL_COMPILE_WITH_CUDA)
6060
set(CMAKE_CUDA_STANDARD 14)
6161
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
6262
endif()
@@ -73,17 +73,17 @@ if(NOT CMAKE_BUILD_TYPE)
7373
endif()
7474

7575
if (DEFINED ENV{NUMBER_OF_PROCESSORS})
76-
set(IRR_PARALLEL_BUILD_JOBS $ENV{NUMBER_OF_PROCESSORS})
76+
set(NBL_PARALLEL_BUILD_JOBS $ENV{NUMBER_OF_PROCESSORS})
7777
else()
78-
set(IRR_PARALLEL_BUILD_JOBS 8)
78+
set(NBL_PARALLEL_BUILD_JOBS 8)
7979
endif()
8080

8181
macro(irr_adjust_flags)
82-
option(IRR_GCC_SANITIZE_ADDRESS OFF)
83-
option(IRR_GCC_SANITIZE_THREAD OFF)
82+
option(NBL_GCC_SANITIZE_ADDRESS OFF)
83+
option(NBL_GCC_SANITIZE_THREAD OFF)
8484

8585
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
86-
if (NOT IRR_BUILD_CEGUI)
86+
if (NOT NBL_BUILD_CEGUI)
8787
add_compile_options(-fno-exceptions)
8888
endif()
8989

@@ -110,10 +110,10 @@ macro(irr_adjust_flags)
110110
#"$<$<CONFIG:RELEASE>:-O3>" # added by default and apparently cmake is not clever enough to filter duplicates for this one
111111
"$<$<CONFIG:RELEASE>:-fexpensive-optimizations>"
112112
)
113-
if (IRR_GCC_SANITIZE_ADDRESS)
113+
if (NBL_GCC_SANITIZE_ADDRESS)
114114
add_compile_options(-fsanitize=address)
115115
endif()
116-
if (IRR_GCC_SANITIZE_THREAD)
116+
if (NBL_GCC_SANITIZE_THREAD)
117117
add_compile_options(-fsanitize=thread)
118118
endif()
119119
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.1)
@@ -179,46 +179,46 @@ macro(irr_adjust_definitions)
179179
endmacro()
180180

181181
if(WIN32)
182-
set(_IRR_PLATFORM_WINDOWS_ 1)
182+
set(_NBL_PLATFORM_WINDOWS_ 1)
183183
elseif(UNIX)
184-
set(_IRR_PLATFORM_LINUX_ 1)
184+
set(_NBL_PLATFORM_LINUX_ 1)
185185
endif()
186186

187187
#uncomment in the future
188-
#option(IRR_TARGET_ARCH_ARM "Build for ARM?" OFF)
188+
#option(NBL_TARGET_ARCH_ARM "Build for ARM?" OFF)
189189

190-
option(IRR_COMPILE_WITH_OPENGL "Compile with OpenGL backend?" ON)
191-
option(IRR_COMPILE_WITH_OPENCL "Compile with OpenCL interop?" ON)
190+
option(NBL_COMPILE_WITH_OPENGL "Compile with OpenGL backend?" ON)
191+
option(NBL_COMPILE_WITH_OPENCL "Compile with OpenCL interop?" ON)
192192

193-
option(IRR_PCH "Enable pre-compiled header" ON)
193+
option(NBL_PCH "Enable pre-compiled header" ON)
194194

195-
option(IRR_FAST_MATH "Enable fast low-precision math" ON)
195+
option(NBL_FAST_MATH "Enable fast low-precision math" ON)
196196

197-
option(IRR_BUILD_EXAMPLES "Enable building examples" ON)
197+
option(NBL_BUILD_EXAMPLES "Enable building examples" ON)
198198

199-
option(IRR_BUILD_TOOLS "Enable building tools (just convert2BAW as for now)" ON)
199+
option(NBL_BUILD_TOOLS "Enable building tools (just convert2BAW as for now)" ON)
200200

201-
option(IRR_BUILD_MITSUBA_LOADER "Enable irr::ext::MitsubaLoader?" ON)
201+
option(NBL_BUILD_MITSUBA_LOADER "Enable irr::ext::MitsubaLoader?" ON)
202202

203-
option(IRR_BUILD_RADEON_RAYS "Enable irr::ext::RadeonRays?" OFF)
203+
option(NBL_BUILD_RADEON_RAYS "Enable irr::ext::RadeonRays?" OFF)
204204

205-
if (IRR_COMPILE_WITH_CUDA)
205+
if (NBL_COMPILE_WITH_CUDA)
206206
find_package(OPTIX)
207207
if (OPTIX_FOUND)
208-
message(STATUS "CUDA and OptiX found, you can enable IRR_BUILD_OPTIX")
208+
message(STATUS "CUDA and OptiX found, you can enable NBL_BUILD_OPTIX")
209209
else()
210210
message(STATUS "OptiX not found")
211211
endif()
212-
option(IRR_BUILD_OPTIX "Enable irr::ext::OptiX?" OFF)
212+
option(NBL_BUILD_OPTIX "Enable irr::ext::OptiX?" OFF)
213213
else()
214-
message(STATUS "Because IRR_COMPILE_WITH_CUDA is not enabled, the IRR_BUILD_OPTIX option will be hidden.")
214+
message(STATUS "Because NBL_COMPILE_WITH_CUDA is not enabled, the NBL_BUILD_OPTIX option will be hidden.")
215215
endif()
216216

217-
option(IRR_BUILD_CEGUI "Enable CEGUI building and integration?" OFF)
217+
option(NBL_BUILD_CEGUI "Enable CEGUI building and integration?" OFF)
218218

219-
option(IRR_BUILD_BULLET "Enable Bullet Physics building and integration?" OFF)
219+
option(NBL_BUILD_BULLET "Enable Bullet Physics building and integration?" OFF)
220220

221-
option(IRR_BUILD_DOCS "Enable building documentation?" ON)
221+
option(NBL_BUILD_DOCS "Enable building documentation?" ON)
222222

223223
set(THIRD_PARTY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/3rdparty")
224224
set(THIRD_PARTY_BINARY_DIR "${PROJECT_BINARY_DIR}/3rdparty")
@@ -229,23 +229,23 @@ execute_process(COMMAND git submodule sync --recursive
229229
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
230230
add_subdirectory(${THIRD_PARTY_SOURCE_DIR})
231231

232-
OPTION(IRR_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" ON)
232+
OPTION(NBL_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" ON)
233233

234234

235235
add_subdirectory(src/irr) # Irrlicht code | Moved cmakelists.txt from source/Irrlicht to src/irr
236236

237237

238238

239-
if(IRR_BUILD_TOOLS)
239+
if(NBL_BUILD_TOOLS)
240240
add_subdirectory(tools) # convert2BAW
241241
endif()
242242

243243
add_subdirectory(ext)
244244

245-
if(IRR_BUILD_EXAMPLES)
245+
if(NBL_BUILD_EXAMPLES)
246246
add_subdirectory(examples_tests)
247247
endif()
248248

249-
if(IRR_BUILD_DOCS)
249+
if(NBL_BUILD_DOCS)
250250
add_subdirectory(docs)
251251
endif()

examples_tests/01.HelloWorld/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include <irrlicht.h>
77

88
/**

examples_tests/02.ComputeShader/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define _IRR_STATIC_LIB_
1+
#define _NBL_STATIC_LIB_
22
#include <irrlicht.h>
33

44
#include "../../source/Irrlicht/COpenGLDriver.h"

examples_tests/03.GPU_Mesh/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include <iostream>
77
#include <cstdio>
88
#include <irrlicht.h>

examples_tests/05.IrrlichtBaWTutorialExample/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include <iostream>
77
#include <cstdio>
88
#include <irrlicht.h>

examples_tests/06.MeshLoaders/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include <iostream>
77
#include <cstdio>
88
#include <irrlicht.h>

examples_tests/09.ColorSpaceTest/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include "ApplicationHandler.hpp"
77

88
int main()

examples_tests/11.RayCastCollision/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include <irrlicht.h>
77

88
#include "../../ext/ScreenShot/ScreenShot.h"

examples_tests/12.Splines/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#define _IRR_STATIC_LIB_
5+
#define _NBL_STATIC_LIB_
66
#include <irrlicht.h>
77

88
#include "../../ext/DebugDraw/CDraw3DLine.h"

0 commit comments

Comments
 (0)