Quote:Original post by lc_overlord
actuarly now that i think about it it should perhaps be
bool NeHeLoadBitmap(LPTSTR szFileName, GLuint *texid)
and texture should be an array, it depends a little on how you are solving this.
yes sir, you're right. I changed it to GLuint *texid and most errors went away. It only had a problem with these two lines from InitGL(GLvoid) function:
if (!NeHeLoadBitmap("crate.bmp", texture[0]))
return FALSE;
The error was something like 'can't convert GLuint to *GLuint. I simply took away the [0] from texture, and it compiled and runs now.
it's amazing how I can't remember the basics of working with chars, arrays etc. anyone wanna offer an easy to follow explanation here?
I feel like I'm the only one who gets overwhelmed by programming. Lessons 6 and 7, I need to review as I'm not sure I understand filters. Otherwise, these tutorials are quite exciting! And I appreciate your patience with me, lc_overlord. definitely makes it easy to learn when you're not getting criticized!