How to loop different images using SOIL.h for OpenGL in c++?

Nibbie
Posts: 3
Joined: 2011.10
Post: #1
Hi,
Good day. Anyone knows how to load different image using SOIL for OpenGL in c++??? Thanks.
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #2
5 seconds of googling finds the SOIL website, which includes usage instructions. Is there something you're trying to do that the given example doesn't show you?
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2011.10
Post: #3
Well, I like to load multiple images using SOIL.H but I got only the last image.
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #4
In what sense? You're calling SOIL_load_OGL_texture twice with different image files, and both of the returned texture IDs draw the second image? Are you passing SOIL_CREATE_NEW_ID as the third parameter both times?

If you post the relevant code and a more detailed description of what's happening, it'll be easier to help. I'm having to make a lot of guesses.
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2011.10
Post: #5
yap, I'm passing SOIL_CREATE_NEW_ID actually i need to get all the images in a xml(I'm done with it) then load all the images in a soil.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #6
repeated epic question fail
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #7
Quote this message in a reply
Post Reply