Sign in to follow this  
coderx04

OpenGL How to Display an JPEG format?

Recommended Posts

Hi guys , how to display JPEG file format, instead of bmp?.. And what is all of the attributes that opengl have for loading a sprite?... Please tell me where can i find information about this.. And please give me source code for display a sprite with jpeg format. thanks

Share this post


Link to post
Share on other sites
OK, I'll bite. Why can't you download the DevIL library? It's really not that difficult to do and it's quite easily your best solution here. With it, you can load and set a JPG as a texture or whatnot in two to four lines of code. And you need only a couple more lines for init stuff.

-Auron

Share this post


Link to post
Share on other sites
mm, dont know why I cant download it from my home.
But I managed to download from my campus now.
I will try to figure things out..

Say, what is I have to do in my intialize?
Thankss..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this