Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comment
  • views


Sign in to follow this  


So I got the texturing working after fiddling about for a bit, it turns out to be surprisingly tricky to texture a basic Mesh.Box!

I have a static class which holds all the textures, with each object holding a string reference to the texture it needs. When it comes to be painted, the string is passed to my texture class which either returns the texture straight away if it is already loaded, or tries to load it if it isn't. I suspect this is probably quite basic compared to what I'd need if I was doing a serious game, but it has the advantage of having all the textures in one place so that when the device resets I can just clear them all out and they'll get loaded again automatically the next time they're needed

The textures are pretty poor at the minute, but they'll do for now
Sign in to follow this  


Recommended Comments

There are no comments to display.

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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!