Problem with textures

Started by
1 comment, last by stroma 19 years, 2 months ago
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.
My Current Project Angels 22 (4E5)
Advertisement
????

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...

visit codesampler, there is a good one there.
+-+-+-+-+-STR

This topic is closed to new replies.

Advertisement