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: Is there a way to read only a few texels from a texture ?

  1. #1
    Intern Newbie
    Join Date
    Oct 2003
    Posts
    30

    Is there a way to read only a few texels from a texture ?

    Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

    Thanks

  2. #2
    Member Regular Contributor
    Join Date
    Jun 2002
    Posts
    366

    Re: Is there a way to read only a few texels from a texture ?

    Originally posted by fuxifuxi:

    Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

    Thanks
    There is no glGetTexSubImage. Render selected part of your texture with orthographic projection and read it back with glReadPixels.

Posting Permissions

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