Ejemplo n.º 1
0
        public SpriteBatch(GraphicsAdapter graphics)
        {
            _GrahpicsAdapter = graphics;
            _SpriteCacheByResource = new Dictionary<Texture2D, List<Sprite>>();
            _ResourceCache = new Dictionary<Texture2D, ShaderResourceView>();
            _Shader = new Shader(graphics.GraphicsDevice, @"Shaders\VertexShader.shader");

            InitBuffers();
            InitBlendState();
        }
Ejemplo n.º 2
0
 public ContentManager(GraphicsAdapter adapter)
 {
     _GraphicsDevice = adapter.GraphicsDevice;
     _GraphicsDeviceContext = adapter.GraphicsDeviceContext;
 }
Ejemplo n.º 3
0
 public Game()
 {
     _GraphicsAdapter = new GraphicsAdapter(this);
 }