PDA

View Full Version : Function interposition of opengl functions



eold012
03-15-2013, 05:11 AM
I would like to be able to able to store mesh data of an arbitrary opengl application as it runs. I found out about function interposition, and tried it for various opengl functions, just printing a message and then calling the real function.
It worked for several, including glGenTextures, glVertexPointer, glutSwapBuffers, however I cant get my replacements for glBufferData or glGenBuffers to run.
I would like to know if there is anything special about these functions, or if there is some other way to retrieve mesh data in running applications, such as that stored in vertex buffer objects

Thanks
Ethan

thokra
03-18-2013, 01:16 AM
Code please.

RigidBody
03-19-2013, 06:38 AM
sounds to me like you are planning to extract model data from a game or something similar.
i do not think that the producer of that game would like you to do that, and therefore i do not
think we should give you support for getting illegal access to someone else's intellectual property.

_jesse_
04-05-2013, 10:52 AM
model is just data. have you loaded the GL extensions using glew?