feat: add RAII window class with OpenGL 4.1 context
- Add cbt::window class in cbt/ directory with RAII lifecycle - Add setup_opengl and info_opengl for glad init and GL info - Add Q key to quit the application - Update CMakeLists.txt with glfw3 and glad dependencies - Update AGENTS.md with snake_case naming and shell conventions
This commit is contained in:
+5
-2
@@ -9,8 +9,11 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps")
|
||||
|
||||
# Dependencies
|
||||
find_package(fmt REQUIRED)
|
||||
find_package(glfw3 REQUIRED)
|
||||
find_package(glad REQUIRED)
|
||||
|
||||
# Target setup
|
||||
add_executable(cuber "cuber.cpp")
|
||||
add_executable(cuber "cuber.cpp" "cbt/window.cpp")
|
||||
target_include_directories(cuber PRIVATE ".")
|
||||
target_compile_features(cuber PRIVATE cxx_std_23)
|
||||
target_link_libraries(cuber PRIVATE fmt::fmt)
|
||||
target_link_libraries(cuber PRIVATE fmt::fmt glfw::glfw glad::glad)
|
||||
|
||||
Reference in New Issue
Block a user