Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

OpenGL texture questions

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Retsu90   Members   

208
Like
0Likes
Like

Posted 01 April 2012 - 02:51 PM

I'm programming a library that it's compatible with OpenGL and OpenGL ES, nothing that seems for me hard. I read somewhere that OpenGL ES supports various texture types like RGB565, RGBA5551 etc, but I didn't found anything for OpenGL. Searching I found GL_RGB5 and other releated stuff, but I don't know how to use it. Firstly seems that GL_RGB5 doesn't give support for 565 colors and I don't know why I should specify the internalformat and the format of a texture and their differences. There is also the type, like GL_UNSIGNED_BYTE, GL_BYTE, GL_UNSIGNED_SHORT etc., but I don't understand how and when use them. Also when I try to mapping textures, the 3D model gets only the right-bottom pixel from the texture and I don't understand why.

Can someone help me?






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.