Skip to content

lpg2709/OpenGL-C-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opengl-c-template

This is my person configuration for develop OpenGL applications in C.

Libs

  • cglm-0.8.9 - Highly optimized 2D|3D math library, also known as OpenGL Mathematics (glm) for C
  • glad-5bf3eda - Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specifications for multiple languages.
  • glew-cmake-2.2.0 - GLEW, source updated nightly with Cmake and pre-generated sources
  • glfw-3.8.8 - GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development
  • lpg3dmath - Is a header only C 3D mathematics library. My 3d lib.
  • stb-5736b15 - stb single-file public domain libraries for C/C++.

To load OpenGL function you can chose GLAD or GLEW.

How use

Clone the repository.

Go to CMakeLists.txt and change the project() name to the name of your project.

mkdir build
cmake ..
cmake --build .

Why not use submodules

Because for this project I preferred to use everything in a single repository, without depending on a submodule. Just a personal choice.

References

This template is based on Glitter from Polytonic.

License

MIT