Jump to content
  • Advertisement
Sign in to follow this  

OpenGL OpenGL texture questions

This topic is 2760 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!