954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

XNA Texture2D public?

I have 2 classes. One get/set BlockData, and one main class that loads,draws,updates.
I have a big list of public Texture2D types that I have in the main class.
I need blockdata to be able to get the texture2d types for each block and send it back to main...but blockdata always returns null.

What do I need to do to get blockdata to acquire the texture2d variables with minimal code?

I don't want to do a get/set for each texture type in the main class.
And I've tried messing with extends/inheritance

Slyvr
Junior Poster in Training
74 posts since Dec 2010
Reputation Points: 10
Solved Threads: 3
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You