Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Texture size change

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    St. Petersburg, Russia
    Posts
    22

    Texture size change

    Hi!

    Just mere curiosity.
    I know that it's not possible to change dimentionality of texture after the first bind. But what's about the size and/or internal format change by subsequent glTexImage* calls without deleting / creating of texture object?

    Thanks.

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Texture size change

    You can change these, including the size, but you're deleting and recreating the texture, it's really heavyweight. Note your call was glTexImage, not SubImage etc.

    The bind is really a deliminator that says "restore texture state to the last state it was for this object". Calls like glTexImage are just incremental state changes that can always be made. Making them when ana texture object is bound changes the texture state of that object permanently, but the incremental nature of the state engine still applies, i.e. it is legal to make those calls and they have an effect even if it's expensive and inadvisable sometimes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •