public AtlasGraphics(AtlasGlobal atlas, GraphicsDeviceManager _graphicsDeviceManager) : base(atlas) { _currentMode = AtlasGraphicsMode.None; _graphicsDevice = atlas.Game.GraphicsDevice; this._graphicsDeviceManager = _graphicsDeviceManager; _graphicsDeviceManager.PreferredBackBufferFormat = SurfaceFormat.Color; #if XNA _graphicsDeviceManager.PreferredBackBufferHeight = 768; _graphicsDeviceManager.PreferredBackBufferWidth = 1024; #endif ////_graphicsDeviceManager.IsFullScreen = true; _graphicsDeviceManager.ApplyChanges(); _spriteBatch = new SpriteBatch(_graphicsDevice); _basicEffect = new BasicEffect(_graphicsDeviceManager.GraphicsDevice); batch = new VertexPositionColorTexture[32][]; batchPrimitiveCount = new int[batch.Length]; _viewPort = new Viewport(0, 0, _graphicsDeviceManager.PreferredBackBufferWidth, _graphicsDeviceManager.PreferredBackBufferHeight); }
public AtlasContent(AtlasGlobal atlas) : base() { this.atlas = atlas; queue = new List <string>(); dynamicContentBuilders = new Dictionary <string, AtlasDynamicContentBuilder>(); assets = new Dictionary <string, object>(); graphicsDevice = atlas.Game.GraphicsDevice; contentManager = atlas.Game.Content; }
public AtlasEntity(AtlasGlobal atlas) { a = atlas; }