Large OpenGL Object handling overhaul
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
include_directories(./.)
|
||||
|
||||
find_package(OpenGL)
|
||||
add_subdirectory(${GLFW_PATH} ${GLFW_PATH}/build)
|
||||
|
||||
@@ -10,8 +8,11 @@ set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
|
||||
toAbsolutePath(NB_GRAPHICS_SOURCE
|
||||
./src/Window.cpp
|
||||
./src/Buffers.cpp
|
||||
./src/OGLObjects.cpp
|
||||
./src/Textures.cpp
|
||||
./src/VertexArray.cpp
|
||||
./src/Window.cpp
|
||||
)
|
||||
|
||||
toAbsolutePath(NB_GRAPHICS_INCLUDE
|
||||
@@ -19,8 +20,10 @@ toAbsolutePath(NB_GRAPHICS_INCLUDE
|
||||
./Camera.hpp
|
||||
./Draw.hpp
|
||||
./GLLoad.hpp
|
||||
./OGLObjects.hpp
|
||||
./shader.hpp
|
||||
./VAOManager.hpp
|
||||
./Textures.hpp
|
||||
./VertexArray.hpp
|
||||
./Window.hpp
|
||||
)
|
||||
|
||||
@@ -31,4 +34,11 @@ add_library(NBGraphics
|
||||
${NB_GRAPHICS_SOURCE}
|
||||
${GLAD_PATH}/src/glad.c
|
||||
)
|
||||
target_link_libraries(NBGraphics glfw3)
|
||||
target_link_libraries(NBGraphics glfw)
|
||||
|
||||
target_include_directories(NBGraphics PUBLIC ./.)
|
||||
|
||||
if (NB_BUILD_TESTS)
|
||||
add_subdirectory(./tests)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user