Skip to main content
GameDev.net gamedev.net
🔒 Locked

RGB565

Started by DWN Feb 7, 2009 at 9:34 PM 1 replies 5.6k views
Original Post
DWN
DWN
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

//..
  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);
//..







Thanks for any help! [Edited by - DWN on February 7, 2009 11:18:24 PM]
fcoelho
fcoelho
Try#including
DWN
DWN
Oh, wow, I thought that was part of the standard package.
Thank you for that painless fix - it got me past the error!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.