Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

glGetTexParameteriv function question

Help
2005-11-18
2013-04-17
  • Matthew Scott
    Matthew Scott
    2005-11-18

    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

       
      • Matthew Scott
        Matthew Scott
        2005-11-19

        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

         
    • Matthew Scott
      Matthew Scott
      2005-11-21

      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