Sign in to follow this  

Problem with textures

This topic is 4695 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

This topic is 4695 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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