This is a simple GLFW starter project that sets up a window and prepares for rendering with OpenGL.
This project requires the following libraries:
To install GLAD, you can use the link to generate the necessary files. Make sure to place the generated files in the include/glad directory.
Installing GLFW can be done through your package manager or by downloading it from the GLFW website.
.
├── CMakeLists.txt
├── Makefile
├── README.md
├── include
│ ├── KHR
│ │ └── khrplatform.h
│ └── glad
│ ├── glad.c
│ └── glad.h
└── src
├── handler
│ ├── initializer.hpp
│ └── shader.hpp
├── main.cpp
└── shader
├── fragment_shader.glsl
└── vertex_shader.glsl
Since we provide a Makefile, you can build the project using the following command:
make buildThis will create a build directory and compile the project. You can then run the executable with:
make runIf you want to clean the build files, you can use:
make cleanIf you want to rebuild the project, you can use:
make rebuild