fabianspring
08-20-2002, 09:03 AM
Hello there!
I have a little confusion with my texturemapping.
1. When exactly should I use my functions?
(such as glTexCoord2f(...) http://www.opengl.org/discussion_boards/ubb/wink.gif
2. How does a cube know that I wanna draw him, using a specific texture, after defining a lot? Is there some "choose"-command like with glColor3f(r,g,b) so that the cube knows that?
3. Is is possible (and/or reasonable) to put all those functions, headers, definitions and variables into an external class in a headerfile and just call those functions then? If yes... what exactly would it look like?
Thank you so much,
Fabian
I have a little confusion with my texturemapping.
1. When exactly should I use my functions?
(such as glTexCoord2f(...) http://www.opengl.org/discussion_boards/ubb/wink.gif
2. How does a cube know that I wanna draw him, using a specific texture, after defining a lot? Is there some "choose"-command like with glColor3f(r,g,b) so that the cube knows that?
3. Is is possible (and/or reasonable) to put all those functions, headers, definitions and variables into an external class in a headerfile and just call those functions then? If yes... what exactly would it look like?
Thank you so much,
Fabian