Original Post
Hi, I am trying to use a fullscreen texture in RGB565 mode, and am needing to get the glTexImage2D() right. I followed the advice I found at http://www.gamedev.net/community/forums/topic.asp?topic_id=398909 However, I get error C2065: 'GL_UNSIGNED_SHORT_5_6_5' : undeclared identifier Thanks for any help! [Edited by - DWN on February 7, 2009 11:18:24 PM]
//..
glBindTexture(GL_TEXTURE_2D,app->textureName);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D,0,1,1024,1024,0,GL_RGB,
GL_UNSIGNED_SHORT_5_6_5,(GLvoid*)app->frameBuff);
//..