Journeyman-dev / gl_debug.h

Header only OpenGL debugging library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REUSE status

Header Only OpenGL Debuging Library

gl_debug.h is a library that helps with debugging OpenGL API calls in a powerful way. gl_debug.h works on the same thread as your OpenGL calls. When an error occurs, gl_debug.h will perform a debug break on the exact line where it occurred, making it as easy as possible to discover the source of the error. Also, unlike the OpenGL debug callback system, gl_debug.h works with OpenGL versions older than 4.3.

The debugging techniques used by gl_debug.h are performance heavy, but this library is designed so that when your application is compiled in release configuration, it will compile as if gl_debug.h was not there. gl_debug.h is only intended to be used during the development of an application.

Want to try the example project? You can set it up easily using bash console.

git clone https://github.com/Journeyman-dev/gl_debug.h
cd gl_debug.h
cmake -S . -B ./build/ -D GLD_BUILD_EXAMPLE=ON -D GLD_EXAMPLE_AUTO_FETCH=ON
cmake --build ./build/

About

Header only OpenGL debugging library.

License:MIT License


Languages

Language:C 79.3%Language:CMake 20.7%