المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Would I be cheating if I... (An XNA/Game dev question)



C# Programming
08-23-2010, 11:51 PM
I want a really nice simple way to grab textures from folders so that I don't have to read there data in all the time in XNA.

The idea will be to load all the textures in my content folder and its sub folders (such as Content\Sprites) so that at run time I could use something such as :

mytexture = Texture.GetTexture("Sprites","myspritefile");

The problem is that I am not sure if this "global" method of grabbing files is recommended?