It seems you can write an inject dll and hook opengl's SwapBuffers function or name like this.
Then write you own RenderText function to render text on opengl context.
I saw this code from renderdoc source code and trace and I can debug and trigger this breakpoint,which can be sure the function is called.
Haven't test for more info and detail.
But I think you can try Detours which is a hook lib for common inject and example from internet to do the same.
Or just like me,trace more about renderdoc,see how it works
I did some search from github,there are lots of DX hack,but almost none opengl hack example,and if there is some,it is all about old version opengl hack like opengl 1 or 2 for counter strike
Hard to see a modern opengl hack example.
But I think renderdoc should work for modern opengl and vulkan.
So it seem a time job to write an Universal opengl rendertext lib by someone maybe.
I have to admit I can't do this because I don't fully understand those source code.
But I think the direction should be correct.Looking for more talented person who can do this
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum