how to load jpg images?–
//Perra
| how to load jpg images?
Take a look at SDL_Image (www.libsdl.org, click on the "libraries"
link).On Tue, May 14, 2002 at 06:10:20PM +0200, Fredrik Persson wrote:
–
I do not have diplomatic immunity
6AD6 865A BF6E 76BB 1FC2 | www.piku.org.uk/public-key.asc
E4C4 DEEA 7D08 D511 E149 | www.piku.org.uk wnzrf at cvxh.bet.hx (rot13’d)
An embedded and charset-unspecified text was scrubbed…
Name: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020514/5483b493/attachment.txt
Thanks…
But how do I use it? (I’m just a newbe to C++ and SDL)–
//Perra
"James" skrev i meddelandet
news:mailman.1021395965.31150.sdl at libsdl.org…
On Tue, May 14, 2002 at 06:10:20PM +0200, Fredrik Persson wrote:
| how to load jpg images?
Take a look at SDL_Image (www.libsdl.org, click on the "libraries"
link).–
I do not have diplomatic immunity6AD6 865A BF6E 76BB 1FC2 | www.piku.org.uk/public-key.asc
E4C4 DEEA 7D08 D511 E149 | www.piku.org.uk wnzrf at cvxh.bet.hx (rot13’d)
(1) Download and install SDL_image
(See: http://www.libsdl.org/projects/SDL_image/ )
(2) In your program, you do something like:
#include "SDL_image.h"
...
SDL_Surface * some_new_surface;
...
some_new_surface = IMG_Load("some_file.jpg");
...
It’s pretty much identical to the interface libSDL has built-in to load BMPs,
except it’s a different function name, and it loads various formats for you!
-bill!On Fri, May 17, 2002 at 08:12:53PM +0200, Fredrik Persson wrote:
Thanks…
But how do I use it? (I’m just a newbe to C++ and SDL)
Thanks…–
//Perra
“nbs” skrev i meddelandet
news:mailman.1021660507.21118.sdl at libsdl.org…
On Fri, May 17, 2002 at 08:12:53PM +0200, Fredrik Persson wrote:
Thanks…
But how do I use it? (I’m just a newbe to C++ and SDL)
(1) Download and install SDL_image
(See: http://www.libsdl.org/projects/SDL_image/ )(2) In your program, you do something like:
#include "SDL_image.h" ... SDL_Surface * some_new_surface; ... some_new_surface = IMG_Load("some_file.jpg"); ...
It’s pretty much identical to the interface libSDL has built-in to load
BMPs,
except it’s a different function name, and it loads various formats for
you!-bill!