Tag Info

New answers tagged

1

You load the texture perfectly, but I don't see any code regarding the drawing of it. Add this: spriteBatch.Draw(image, new Vector(0f, 0f), Color.White); into your SplashScreen's Draw function.


2

It is possible to just pass the Content Manager to your modules, and have them load their own textures/data. Its also tidier, as the Module is responsible for loading its own textures, and doesn't have to depend on its resources being loaded elsewhere. I do something similar - my data objects have a string specifying a texture/model, and my rendering code ...



Top 50 recent answers are included