Hello,
im using glDrawPixels() to draw some pixel data that i read from a file. After that, im trying to draw other objects. But, im the objects are not visible when i enable depth buffering.
glDrawPixels(640, 480, GL_RGB, GL_UNSIGNED_BYTE, image_data);
glColor3f(1.0, 0.0, 0.0);
glutWireCube(200);
Here, the Cube appears when i disable depth buffer. But i cannot see the cube when depth buffering is enabled.
i even tried using Textures, but the cube does not appear.
Can anyone please tell me what the problem could be?
Thanks.