Skip to content

Instantly share code, notes, and snippets.

@adventureloop
Created May 7, 2013 19:51
Show Gist options
  • Save adventureloop/5535573 to your computer and use it in GitHub Desktop.
Save adventureloop/5535573 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <SOIL/SOIL.h>
using namespace std;
int
main(int argc,char **argv)
{
cout << "SOIL Demo" << endl;
int texture = SOIL_load_OGL_texture("test.png",
SOIL_LOAD_AUTO,
SOIL_CREATE_NEW_ID,
SOIL_FLAG_INVERT_Y);
if(texture == 0)
cout << "error" << endl;
cout << "no error in the SOIL" << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment