Jeeeez
10-24-2001, 06:12 AM
Hello,
I am having some trouble reading what is in the stencil buffer.
Here is a small section of my code:
GLVoid* pixels;
glReadPixels(
mpoint.x,
mpoint.y,
pixwidth,
pixwidth,
GL_STENCIL_INDEX,
GL_FLOAT,pixels);
mpoint is set with a mouseclick
pixwidth is 100
The damn thing crashes every time.
Does anyone have an example of reading what is in the stencil buffer and outputting it into a file?
I am having some trouble reading what is in the stencil buffer.
Here is a small section of my code:
GLVoid* pixels;
glReadPixels(
mpoint.x,
mpoint.y,
pixwidth,
pixwidth,
GL_STENCIL_INDEX,
GL_FLOAT,pixels);
mpoint is set with a mouseclick
pixwidth is 100
The damn thing crashes every time.
Does anyone have an example of reading what is in the stencil buffer and outputting it into a file?