How to make a simple opengl32.dll
-
Does anyone have an example of how to make a simple opengl32.dll? I want to catch application usage of glBegin(). So my dll must intercept the normal opengl call, keep a counter of the number of glBegins, and then call the real opengl glBegin(). I tried API highjack, but this will not work if the application loads the opengl library dynamically at runtime using LoadLibrary. Thanks, Max
-
Does anyone have an example of how to make a simple opengl32.dll? I want to catch application usage of glBegin(). So my dll must intercept the normal opengl call, keep a counter of the number of glBegins, and then call the real opengl glBegin(). I tried API highjack, but this will not work if the application loads the opengl library dynamically at runtime using LoadLibrary. Thanks, Max
use the win32 disassembler, and check the box for 'break on api calls'. int i = 2, x = 2; int j = x + y; sprintf("%d",j); 4.7388937 ??? My articles www.stillwaterexpress.com BlackDice