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(); }
public ContentManager(GraphicsAdapter adapter) { _GraphicsDevice = adapter.GraphicsDevice; _GraphicsDeviceContext = adapter.GraphicsDeviceContext; }
public Game() { _GraphicsAdapter = new GraphicsAdapter(this); }