I see that the glGetTexParameteriv function exists in the gl.h header, but I can't find definitions for any of the parameters (GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, etc).
What is the proper way to retrieve a texture's width or height in Vincent?
GenericBum
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see that the glGetTexParameteriv function exists in the gl.h header, but I can't find definitions for any of the parameters (GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, etc).
What is the proper way to retrieve a texture's width or height in Vincent?
GenericBum
Let me check the specification... Maybe there is no way defined.
- HM
In researching this.. it looks like you should query the underlying surface of a texture with eglQuerySurface() to find out the width/height.
Does that sound correct?
GenericBum
I'm a little new to GL and GLES, but in looking through the documentation, i think these functions are defined in the OES specification.
Either GetTexParameterxvOES() or GetTexLevelParameterxvOES().
The GetTexLevelParameterxvOES would provide access to:
GL_TEXTURE_WIDTH
GL_TEXTURE_HEIGHT
GL_TEXTURE_DEPTH
GL_TEXTURE_INTERNAL_FORMAT
These don't seem like hard functions to write. I could implement them and send you a patch for Vincent.
GenericBum