05-28-2004, 10:52 AM
I have a pretty straight forward rendering function that uses glDrawPixels. Problem is that the image is mirrored horizontally.
glDrawPixels(256, 256, GL_LUMINANCE, GL_UNSIGNED_BYTE, static_cast<const GLvoid*>(m_Data));
// where m_Data is a pointer to the pixels that are unsigned BYTE's from 0-255TIA
glDrawPixels(256, 256, GL_LUMINANCE, GL_UNSIGNED_BYTE, static_cast<const GLvoid*>(m_Data));
// where m_Data is a pointer to the pixels that are unsigned BYTE's from 0-255TIA