Sign in to follow this  
  • entries
    6
  • comment
    1
  • views
    4645

Textures

Sign in to follow this  
Vyper_uk

255 views

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  


0 Comments


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