Skip to content

Template for fast start with a few shaders, OpenGL, [email protected], cmake, make, glfw and glew

License

Notifications You must be signed in to change notification settings

the-homeless-god/C-OpenGL-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C OpenGL Template

Version: 0.0.1

Screen.Recording.2023-11-13.at.13.48.20.mov
  • a few shaders (renders rotated cube with gradient of colors)
  • OpenGL
  • [email protected]
  • cmake
  • make
  • glfw
  • glew
  • cunit
  • cglm

Note

  • TODO: Fix file uploading of shaders by specific naming. Everything works as expected, excluding the issues with test of asset uploads, seems like I've not ability to verify it on my current system.
  • TODO: add guide how to add new tests
  • TODO: add GitHub Actions for each deployment state
  • TODO: add build to WASM (as fast option to test at GitHub Pages)
  • TODO: add more documentation about code structure and imperative places

Requirements

  • MacOS - (OS X) install tools
brew install conan@1
brew install cmake

conan profile detect --force
  • Linux - install tools
sudo apt-get update
sudo apt-get install libgl-dev libgl1-mesa-dev libglu1-mesa-dev libx11-xcb-dev libfontenc-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxres-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-cursor-dev libxcb-util0-dev libxcb-util-dev

pip install --force-reinstall -v "conan==1.60.1"
pip install cmake

conan profile detect --force
  • Build (Makefile)
# install deps, build
make 

# build without deps installation
make build

# start executable app
make start

# cleanup build folder
make clean

# run unit tests
make test
  • Build (manually)
mkdir build && cd build
conan install ..
cmake ..
make

About

Template for fast start with a few shaders, OpenGL, [email protected], cmake, make, glfw and glew

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published