https://github.com/iohannrabeson/oglu
truly useless: I wanted to kid with OpenGL and metaprogramming
https://github.com/iohannrabeson/oglu
Last synced: 3 months ago
JSON representation
truly useless: I wanted to kid with OpenGL and metaprogramming
- Host: GitHub
- URL: https://github.com/iohannrabeson/oglu
- Owner: IohannRabeson
- Created: 2017-06-26T16:58:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-19T07:06:31.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T04:30:01.342Z (4 months ago)
- Language: C++
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Oglu library
An aborted attempt to make a wrapper around OpenGL reducing the boilerplate, and hiding the ugly stuff behind a type safe API.
I did that because I wanted to use OpenGL, and I had a lot of metaprogramming thing in head at the same time.
I only tried it on Mac with everything installed using Brew.# Requierements
- a C++ compiler with a good C++11 support
- [CMake](http://www.cmake.org/)
- [Boost](http://www.boost.org/) test framework (optional)
Notes only boost_test_unit_framework and boost_system are needed.
- [Doxygen](http://www.stack.nl/~dimitri/doxygen/) (optional)
- [OpenGL](https://www.opengl.org/)
- [Glew](http://glew.sourceforge.net/)Just install each programs/libraries required and cmake will
finds automaticly their locations.Oglu example require OpenGL 4.1.
# Submodules
Oglu use git submodule for somes of their dependencies.
Don't forget to update these submodule by typing:git submodule update
# Building the project and compiling
cd
cmake -G "Unix Makefiles" -DBUILD_ALL=TRUE
# make all...
make
# run the tests...
ctestYou can also use ccmake if you want to configure the build more precisely or
to explore all the options availables.## Build results location
All output are located at `/output`.## CMake variables
Several CMake variable are defined.
You can set variables with the flag -D (see example above and CMake documentation).- BUILD_ALL (default FALSE):
Enable all build options.- BUILD_DOCUMENTATION (default TRUE): Build the library documentation.
This option require Doxygen if enabled.
The documentation will be builded in `/output/html/`.- BUILD_TESTING (default TRUE):
Builds all unit tests program.
To add a new test file, put your cpp in `tests/src/` directory then append the new path to the list of source in `tests/CMakeLists.txt`.
Each test is generated in his own direction in `/output/tests/`.