Problem with textures
Can anyone show me how to load textures from a class other than the main class. I know this question is very vague. For example instead of loading textures in the main code(like in nehes tutorial) I want to load it in another class.
????
I am guessing you want to make a texture class and call something like
If so just dump all the pertinent information from NEHE into a class and modify as needed...
I am guessing you want to make a texture class and call something like
Texture grass = Texture();grass.LoadTexture("filename.ext", width, height);
If so just dump all the pertinent information from NEHE into a class and modify as needed...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement