View Full Version : displaying jpeg in opengl

John Qualis
11-24-2010, 11:24 AM
I am compressing 3D opengl raw pixel data using jpeg library and sending the compressed data as jpeg images from app1 to another opengl app (app2) over an IP link. I have setup opengl texture mapping on the receiver side (app2) and it works OK with raw pixel data. I want to use the same setup or something similar to display JPEG. Will I have to decompress and get back the original data and display it? Can I somehow bypass decompression?

Thanks in advance.

11-24-2010, 11:29 AM
Instead of using JPEG you'll need to use a compression format that's can be sent directly to a glTexImage2D call, like DXT.