Skip to content

Single header OpenGL utility library in the public domain

Notifications You must be signed in to change notification settings

LukasBanana/MentalGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MentalGL - OpenGL debugging utility to review entire render state

Public domain (CC0) header-only library written in C99.

Code Example

Here is a brief example how to use this utility library:

// Include and implement MentalGL in a single source file
#define MENTAL_GL_IMPLEMENTATION
#include "mental_gl.h"

// Do OpenGL stuff ...

// Query current OpenGL state
MGLRenderState rs;
mglQueryRenderState(&rs);

// Print queries OpenGL state (ignore optional formatting descriptor, otherwise see 'MGLQueryFormatting' structure)
MGLString s = mglPrintRenderState(&rs, NULL);

// Print result
puts(mglGetUTF8String(s));

// Free opaque string object
mglFreeString(s);

Output Example

ExamplePicture1

About

Single header OpenGL utility library in the public domain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published