I'm using DevIL to load my images that I'm using to bind as textures. I am also using ilGetInteger( IL_IMAGE_WIDTH ) and ilGetInteger( IL_IMAGE_HEIGHT ) to get the width and height. For some reason, though, every image I call, no matter its original size, is always set to the same size.
I want them to be the size of the original images.
Here is my graphics header:
Here is my common header:
Here is my main cpp file:
Here are the images I'm trying to load/bind:
Here is my output:
Nevermind, I solved it.
I just removed these lines:
ilGenImages( 1, &texid );
ilBindImage( texid );
And it worked.
I have no idea what those did, or how my code can work without them, though. If anyone reading this knows, I'd love if you'd enlighten me.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.