DevIL is a member function, and can only be called from an object of that type (i.e. with a dot, as in object.DevIL()).
DevIL is a member function, and can only be called from an object of that type (i.e. with a dot, as in object.DevIL()).
Any other hints, I did try doing similar at 2am last night for example.
GLMain devil;
devil.DevIL();
I would of thought even "GLMain.DevIL();" would work why not?
Why only from it's type? And why can i call it from Initialize GL with just "DevIL();"
I'm afraid from your example I can't get what Object.DevIL would be in my case. Any more help or suggestions would be appreciated, As i'm sure this is meant to be easy.
Last edited by Freestyler; 06-04-2009 at 12:31 AM.
Download Bruce Eckel's free "Thinking in C++" and start reading.