View Full Version : how can i map jpg. images?

06-14-2016, 05:25 AM
I would be glad to know how to map images and bring them into life.

Agent D
06-14-2016, 07:34 AM
OpenGL(R) is a standardized API for hardware accellerated rasterization. It doesn't deal with platform specific details like creating a
rendering context or user input.

Similarly, while it does support textures, it doesn't care about specific file formats that the texture images could be stored in or even
where the images come from at all. There are only API functions for uploading the images once you got them, or for reusing pipeline
output as a texture image.

If you want to upload images from JPEG compressed JFIF files, you have to process the files first and upload the final RGB[A] image,
once you have it. There are multiple libraries that simplify this task:

DevIL (http://openil.sourceforge.net/)
The ImageMagick (http://www.imagemagick.org/script/index.php) library
The single source file tiny JPEG decoder (https://saillard.org/programs_and_patches/tinyjpegdecoder/)
LibJPEG (http://libjpeg.sourceforge.net/)

However, I can't help you with "bringing things to live", unless you are more specific about what you mean by that.