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: Can't load .png image using opengl texture

  1. #11
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    UK, London
    I translate the headers from C into Delphi; a long and tedious task. Delphi, like other langauages, is able to pass parameters to functions calls in a variety of ways to make them compatible with other languages.

  2. #12
    Member Regular Contributor Rosario Leonardi's Avatar
    Join Date
    Aug 2008
    Png is a compressed format, is like try to zip a text file and then try to open it with notepad.
    If you want to use any format around (jpeg, png, gif, etc...) you need an algorithm to decompress it or otherwise the only compressed format that you can use with hardware acceleration is DDS.
    You can find a lot of library to load picture with relative documentation on the web. Google is the way.
    By the way, why are you trying to load the texture EVERY FRAME?
    And to finish, openGL is not a C library or and header, openGL is an interface. Interface that you can implement in any language, there is an openGL implementation for every language that I know.
    ~ ~ I tell you, realtime 3D is made of blood, sweat and screams! ~ ~

Posting Permissions

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