Basicly, I have a cube, with each face a different color.
I'm trying to use glReadPixels to read the color of a set point on the screen, so I know wich face is facing twoard the camera.
I dont really need to know that the returned value is any given color, all that really matters is that there are six different values(one for each face of the cube).
However I'm not quite sure what the last argument in hte function means. Does it need a pointer to a float?
I've never used pointer so any help would be appreciated.
I'm trying to use glReadPixels to read the color of a set point on the screen, so I know wich face is facing twoard the camera.
I dont really need to know that the returned value is any given color, all that really matters is that there are six different values(one for each face of the cube).
However I'm not quite sure what the last argument in hte function means. Does it need a pointer to a float?
I've never used pointer so any help would be appreciated.