Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

share|improve this question

closed as too broad by Byte56 Feb 15 at 2:55

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs. If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 4 down vote accepted

The most comprehensive information can usually be found by reading OpenGL extension specifications:

GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D: http://www.opengl.org/registry/specs/EXT/texture_object.txt (slightly antiquated)

GL_TEXTURE_RECTANGLE: http://www.opengl.org/registry/specs/ARB/texture_rectangle.txt

GL_TEXTURE_CUBE_MAP_XXX http://www.opengl.org/registry/specs/ARB/texture_cube_map.txt

GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY: http://www.opengl.org/registry/specs/EXT/texture_array.txt

share|improve this answer
    
Thanks for the links. I already read some of them, although having them well organised in a single post is a great plus. My only comment is that "comprehensive" is probably not the word i would have used for these docs. "Written by experts for experts" seems more appropriate. –  Cyan Dec 15 '12 at 11:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.