View Full Version : Simple about textures

02-27-2003, 10:19 PM
Hi folks.
I have one simple question that you will surely answer. I wonder why OpenGL textures are stored as GLuint. Is it somekind of a pointer or index to an array which OGL create? Meaby it doesn't really disturb me in writing programs but i would fell better if i just know the answer.


02-27-2003, 10:33 PM
It is just an ID that OGL assign to the texture just created, then you (and OGL) will call this texture with the same ID.
How could you store/manage it otherwise ?? http://www.opengl.org/discussion_boards/ubb/smile.gif
It is not possible to use (let's say) a pointer, because you just can't access the texture directly coz it isn't in system memory but on gfx card memory.

hope it helps

02-28-2003, 10:38 AM