Advertisement

displaying JPEGs of any size:

Started by December 28, 2002 06:23 PM
1 comment, last by _eye 21 years, 10 months ago
Hi: I''m studying how to display JPEGs in a openGL context. I want to be able to load a background picture and then draw sprites on top of it. One openGL tutorial I''ve found that uses jpeg is : http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg2.htm But this uses a perfect 256x256 JPeg texture ... can I display a JPEG with any height/width? Thanks for any feedback!
yes your can.. and i sugest you to take a look at the jpg lib... go to gametutorials and check a tutorial there for jpg
Metal Typhoon
Advertisement
well, this isn''t really a solution for opengl,
but i had the same problem with directx
what i did was, load the image into memory, and then ''chop'' it up into 256X256 sub-images.
i then textred several flat panels with the smaller images, and then lined them all up in a grid.

does that make sense?

This topic is closed to new replies.

Advertisement