Results 1 to 3 of 3

Thread: Puzzling question about glBindTexture

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    China, Shanghai
    Posts
    1

    Puzzling question about glBindTexture

    Hi buddy,

    With OGL_ES spec:
    (You can reference following website
    http://www.khronos.org/opengles/docu...ndTexture.html
    )

    glBindTexture(GLenum target, GLuint texture)

    texture = 0 is reserved to represent the default texture for each texture target.

    What does this means? default texture??

    For OGL, we use texture = 0 to deactivate
    texture. But for OGL_ES, how do we do...


    Thanks so much!
    I believe I can fly......

  2. #2
    Junior Member
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    6

    Re: Puzzling question about glBindTexture

    The semantic for glBindTexture(target, 0) is the same in OpenGL: it will bind the default texture object (and DOES NOT deactivate texture mapping).

    Marco.
    Marco Di Benedetto

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Posts
    2

    Re: Puzzling question about glBindTexture

    Just to be clear..

    glBindTexture(target, 0)

    will bind the default texture, but if you have not specified any data for the default texture (by calling glTexImage2D), then the texture will be incomplete and will therefore switch off texturing on that texture unit.

Similar Threads

  1. Replies: 1
    Last Post: 02-29-2012, 06:34 PM
  2. glActiveTexture and glBindTexture
    By freber in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 12-09-2007, 06:08 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
  •