GLTrace / GLHooker

Status
Active development
Language
Rust
Source
github.com/lappn99/gltrace_rs

The concept and technology of function hooking has always interested me, and I’ve always wanted to create an OpenGL debugger like RenderDoc or Nvidia Nsight. I also chose to build it in Rust, in a bid to learn the language better.

This library integrates OpenGL call tracing directly into the program, so launching it through an external tool isn’t necessary. It can also write the trace to a file, along with additional statistics and metrics.

It does this by hooking into an OpenGL function retrieval function, overwriting its code so that when the program requests an OpenGL function, the hook is returned instead.

Future plans

I have lots of ideas for this project, and if time permits I would love to implement them all, such as: