This commit is contained in:
zack 2025-05-23 21:13:53 -04:00
commit 444f800536
No known key found for this signature in database
GPG key ID: EE8A2B709E2401D1
122 changed files with 17137 additions and 0 deletions

View file

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.19)
project(Chapter01)
include(../../CMake/CommonMacros.txt)
SETUP_APP(Ch01_Sample02_GLFW "Chapter 01")
target_include_directories(Ch01_Sample02_GLFW PUBLIC ${CMAKE_SOURCE_DIR})
target_link_libraries(Ch01_Sample02_GLFW SharedUtils)

View file

@ -0,0 +1,17 @@
#include <cstdint>
#include <shared/HelpersGLFW.h>
int main() {
uint32_t width = 1280;
uint32_t height = 720;
GLFWwindow *window = initWindow("GLFW Example", width, height);
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
}
glfwDestroyWindow(window);
glfwTerminate();
return 0;
}