glrhi (OpenGL Rendering Hardware Interface) is a library aimed at abstracting Modern OpenGL 4.6 using modern concepts, like DSA (Direct state acces) to reduce boilerplate at no preformance overhead.
Requirements:
- CMake 3.16
- A C++ 20 compiler
- GNU Make
- A GPU supporting OpenGL 4.6 (not required for building, but for using the library)
Build process:
First clone the repo.
git clone --recursive https://github.com/Jan-Stangelj/glrhi.git
Then make the build directory and cd to it.
cd glrhi
mkdir build
cd build
Configure the project
cmake ..
And compile it (The j option sets the amount of threads make will use)
make -j 4
TBD
To use the library in a CMake project, first add it as a subdirectory.
set("GLRHI_BUILD_EXAMPLES" OFF CACHE BOOL "") # Disables building examples
add_subdirectory("vendor/glrhi")
Finally link the library to your executable.
target_link_libraries("your_executable" glrhi)
See EXAMPLES.md.
See LICENSE