Add templated wrapper objects

- Shader
- Program
- Buffer
- VertexArray

Along with template magic to deduce VertexArray formats

- Format, IFormat, LFormat
- AutoFormat
- Binder
- ATTR
This commit is contained in:
2022-02-13 20:28:00 -05:00
committed by David Allemang
parent 669d04845d
commit 89b9780f6c
7 changed files with 360 additions and 144 deletions

View File

@@ -19,7 +19,13 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/res ${CMAKE_CURRENT_BINARY_DIR}/res
COMMENT "Copying Resources")
add_executable(vis src/main.cpp)
add_executable(vis
src/main.cpp
src/gl/debug.hpp
src/gl/shader.hpp
src/gl/buffer.hpp
src/gl/vertexarray.hpp
src/gl/types.hpp)
target_link_libraries(vis glfw glad imgui eigen nlohmann_json)
add_dependencies(vis resources)