Sign in to follow this  
Sir Sapo

Problem with textures

Recommended Posts

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.

Share this post


Link to post
Share on other sites
????

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this