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)); }
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; }
public XNATextureCollection(XNAGameEngine gameEngine) { engine = gameEngine; }
internal TextureInfoReader(XNAGameEngine gameEngine, ContentManager contentManager) { engine = gameEngine; Instance = this; textureLoader = new XNAContentLoader <TextureID, Texture2D>(contentManager, "Textures"); }