Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Need some suggestion about reading and displaying an image file

  1. #11
    Member Regular Contributor
    Join Date
    Jan 2011
    Paris, France
    For to manipulate the image, alls informations you need are already used at the line that load the texture from the RAM to OpenGL ...
    Code :
    glTexImage2D(GL_TEXTURE_2D, 0, ilGetInteger(IL_IMAGE_BPP), ilGetInteger(IL_IMAGE_WIDTH), ilGetInteger(IL_IMAGE_HEIGHT),          0, ilGetInteger(IL_IMAGE_FORMAT), GL_UNSIGNED_BYTE, ilGetData()); /* Texture specification */

    For to write it, use this DevIL functions :
    Code :
    ILboolean ilSaveImage(const char *FileName);
    (you can found a .pdf file that explain how to use DevIL at

  2. #12
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Thanks a lot.

Posting Permissions

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