https://github.com/pgvalle/opengl-cpp
C++ Template to quickstart your opengl journey!
https://github.com/pgvalle/opengl-cpp
cmake cpp glfw graphics-programming jesus jesus-christ opengl opengl33 template template-project
Last synced: 5 months ago
JSON representation
C++ Template to quickstart your opengl journey!
- Host: GitHub
- URL: https://github.com/pgvalle/opengl-cpp
- Owner: pgvalle
- License: mit
- Created: 2023-03-10T13:19:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T00:13:27.000Z (over 1 year ago)
- Last Synced: 2025-04-14T00:15:50.109Z (12 months ago)
- Topics: cmake, cpp, glfw, graphics-programming, jesus, jesus-christ, opengl, opengl33, template, template-project
- Language: C
- Homepage:
- Size: 189 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ OpenGL Project Template
## Components
1. [OpenGL](https://www.opengl.org/) (Obviously)
2. [GLFW](https://github.com/glfw/glfw) (abstracts window handling, mouse, keyboard and etc...)
3. [linmath](https://github.com/datenwolf/linmath.h) (linear algebra)
4. [stb_image](https://github.com/nothings/stb/blob/master/stb_image.h) (image loading)
## Building
1. Make sure you have cmake installed. Windows installer [here](https://github.com/Kitware/CMake/releases/download/v3.26.1/cmake-3.26.1-windows-x86_64.msi).
2. Open a terminal/cmd and move to the root directory.
3. Run one of the following commands depending on your platform:
* Linux/MacOS: `cmake -S. -Bbuild`
* Windows (MinGW): `cmake -S. -Bbuild -G"MinGW Makefiles"`
* Windows (MSVC): `cmake -S. -Bbuild -G"Visual Studio {major-version-number} {release-year}"`
**NOTE**: Those commands may take a while to finish because they download GLFW.
4. Run `cmake --build build`.
5. You should be able to see and run an executable called **example** inside a new directory called build.
## PLEASE READ THIS
Jesus loves you and wants to protect us, help us, bring happiness to us and save us from hell.
Give him the chance. Give yourself the chance!
If you remotely feel something, please watch this: https://www.youtube.com/watch?v=ZXqQGuAt7SE.
It's just 3 minutes long.