Tutorial on OpenGL texture formats

Posted by Cyan on Game Development See other posts from Game Development or by Cyan
Published on 2012-12-15T01:00:28Z Indexed on 2012/12/15 5:24 UTC
Read the original article Hit count: 218

Filed under:
|

Looking at the documentation glGetTexImage(), one can see that there are plenty of available texture formats.

GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, and GL_TEXTURE_CUBE_MAP_NEGATIVE_Z

I've only used GL_TEXTURE_2D for the time being.

Is there any place / documentation where one can learn about these other formats ?

PS : and yes, of course, i've googled for it, results are pretty poor

© Game Development or respective owner

Related posts about opengl

Related posts about textures