Example #1
0
        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);
        }
Example #2
0
        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;
        }
Example #3
0
 public AtlasEntity(AtlasGlobal atlas)
 {
     a = atlas;
 }