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: Update Texture content

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    27

    Update Texture content

    In my program, I need to frequently update the content of Texture.
    can I just use
    glTexImagenD()?
    do I need also use glDeleteTextures
    and bind again?

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2003
    Posts
    25

    Re: Update Texture content

    glTexSubImage might be more efficient, if the texture has always the same size. Memory allocation for the texture is not necessary in that case and you do not need to delete the texture. If you use data from the framebuffer, glCopyTexSubImage is the fastest method (except you are able to use PBuffers).

Posting Permissions

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