Example #1
0
 public SpriteBatchRenderer(SpriteBatch batch, XNAGameEngine engine, int ScreenWidth, int ScreenHeight)
 {
     spriteBatch  = batch;
     textures     = new XNATextureCollection(engine);
     ScreenBounds = new Boundary(new AbstractPosition());
     ScreenBounds.Position.Set(new Rectangle(0, 0, ScreenWidth, ScreenHeight));
 }
Example #2
0
        public Game1(ISceneLoader sceneLoader, SceneID initialScene)
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = 256 * 4;
            graphics.PreferredBackBufferHeight = 192 * 4;
            graphics.IsFullScreen = false;
            Content.RootDirectory = "Content";

            engine             = new XNAGameEngine();
            engine.SceneLoader = sceneLoader;

            InitialScene = initialScene;
        }
Example #3
0
 public XNATextureCollection(XNAGameEngine gameEngine)
 {
     engine = gameEngine;
 }
Example #4
0
 internal TextureInfoReader(XNAGameEngine gameEngine, ContentManager contentManager)
 {
     engine        = gameEngine;
     Instance      = this;
     textureLoader = new XNAContentLoader <TextureID, Texture2D>(contentManager, "Textures");
 }