Results 1 to 4 of 4

Thread: query list of all texture targets

  1. #1
    Member Newbie
    Join Date
    May 2006
    Location
    Czech republic
    Posts
    42

    query list of all texture targets

    How can be queried list of all supported texture targets of the current OpenGL connection? (GL_TEXTURE_2D, ...)

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: query list of all texture targets

    You mean supported or hardware accelerated?

    Support is granted by checking OpenGL versions or related extensions which added support.

    A list of what was added in which OpenGL version can be found at the end of the OpenGL specs:
    http://www.opengl.org/documentation/specs/

    The official list of extensions is here:
    http://www.opengl.org/registry/


    Finding out which feature is hardware accelerated is more difficult, but many things are documented. Like non-power-of-2 textures are in the OpenGL 2.0 spec, but only implementations exporting also the ARB_texture_non_power_of_two accelerate it.

    Other combinations of good or bad format combinations can be found in the resp. vendor's programming guides.

    The only way to verify without a-priori knowledge would be to run a benchmark of the alternative paths you plan to support.
    There are too many combinations to list.

  3. #3
    Member Newbie
    Join Date
    May 2006
    Location
    Czech republic
    Posts
    42

    Re: query list of all texture targets

    Thanks Relic. I meant supported ones. I know it must be done through checking extensions with glGetString, but some easy way how to get currently supported targets propably doesn't exist. I mean something like glGet (GL_TEXTURE_TARGETS) returning array of GLenums.

  4. #4
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: query list of all texture targets

    Nope, that would be too easy.
    It's not that there are too many texture targets, from the top of my head: 1D, 2D, 3D, CUBE, RECT, 1D/2D_ARRAY.
    (Plus maybe in combination with NPOT and Floating Point).
    It's not too much effort to store the relevant minimum OpenGL versions and extensions and check against that.

Similar Threads

  1. Changing texture targets
    By awhig in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-16-2009, 11:09 PM
  2. occlusion query and display list
    By ritesh in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-27-2008, 03:50 PM
  3. New targets for ARB occlusion query
    By gamefreedom in forum OpenGL: General
    Replies: 5
    Last Post: 06-05-2006, 11:00 PM
  4. using GL_FLOAT for texture targets
    By paintor in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 03-26-2004, 04:20 PM
  5. display list's query
    By coda in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-10-2003, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean