tleave2000
10-10-2009, 08:49 AM
Hiya. I'm trying to find a function that will let me know the currently bound texture object.
I found the following description in the OpenGL 3.2 specification. I was expecting a simple glGetInteger function, not a glGetIntegerv function. I'm only looking for one value: the value of the texture object currently bound to the active texture unit. Why is it threatening to supply 48* x 3 unsigned integers? (Perhaps it returns the ids of the textures bound to every texture unit? And 48 is the minimum number of texture units? (seems a lot) and even then why the '3'?)
Get value : TEXTURE BINDING xD
Type: 48* x 3 x Z+
GetCommand: GetIntegerv
Minimum Value: 0
Description: Texture object bound to TEXTURE_xD
Any help with understanding this would be very much appreciated. Thanks for looking.
I found the following description in the OpenGL 3.2 specification. I was expecting a simple glGetInteger function, not a glGetIntegerv function. I'm only looking for one value: the value of the texture object currently bound to the active texture unit. Why is it threatening to supply 48* x 3 unsigned integers? (Perhaps it returns the ids of the textures bound to every texture unit? And 48 is the minimum number of texture units? (seems a lot) and even then why the '3'?)
Get value : TEXTURE BINDING xD
Type: 48* x 3 x Z+
GetCommand: GetIntegerv
Minimum Value: 0
Description: Texture object bound to TEXTURE_xD
Any help with understanding this would be very much appreciated. Thanks for looking.