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: Image Loading Library for loading image textures

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2017
    Posts
    6

    Image Loading Library for loading image textures

    Can you suggest a library that can decode PNG or JPG files. Also can you show me code sample as to how to load data into the texture object using glTexStorage2D() and glTextSubImage2D() by using the library. I'm much concerned with the parameters that I need to pass in these functions. I'm just looking for a consistent way to load images to the texture.
    Last edited by jitendra2896; 08-02-2017 at 10:05 AM.

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2012
    Posts
    418
    Quote Originally Posted by jitendra2896 View Post
    Can you suggest a library that can decode PNG or JPG files.
    There are many:

    SOIL
    DeviL
    FreeImage
    Gli...

    They are well listed here.

Tags for this Thread

Posting Permissions

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