Hi
Looking in GL.java we see:
public void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.Buffer pixels);
public void glReadPixels(int x, int y, int width, int height, int format, int type, long pixels_buffer_offset);
How are we to use these versions of glReadPixels()?
Specifically, I’m trying to convert the example at:
http://nehe.gamedev.net/data/articles/article.asp?article=13
with the C call:
glReadPixels(X, -Y, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, @winZ );
which sets the z-value winZ by arg reference.
Graham
