Easiest way to get a jpg into opengl.
Hi,
does anyone have any (as simple as possible) code that will read and bind a jpg into an opengl texture. (it doesn''t matter if it uses external libs or not).
Thanks.
and on a side note, does anyone know of any sites which are orientated specificly towards texture loading (apart from tga/bmp)
... and DevIL supports various other formats like .gif, .tif, .pcx and even .psd (photoshop)... (there are alot of more..)
just call init function (ilInit()) and load image (ilLoadImage(path))
just call init function (ilInit()) and load image (ilLoadImage(path))
Use Intel''s library as I did. Its very simple to use and I got source code for loading JPEG images. See it in Material.h/cpp in Bezier Editor Project at the page with link at bottom.
Cheers.
" Do we need us? "
Cheers.
" Do we need us? "
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement