public MonoGameGraphics(GraphicsDevice graphicsDevice) { _spriteBatch = new SpriteBatch(graphicsDevice); _graphicsDevice = graphicsDevice; _translation = Vector2.Zero; _scale = Vector2.One; _rotationCenter = Vector2.Zero; _shapeRenderer = new MonoGameShapeRenderer(graphicsDevice, MonoGameColor.toArgb(_setColor), _spriteBatch, _rotationCenter, _translation, _scale, _tint); }
public MonoGameGraphics(GraphicsDevice graphicsDevice) { _spriteBatch = new SpriteBatch(graphicsDevice); _graphicsDevice = graphicsDevice; _clipRectangle = new org.mini2Dx.core.geom.Rectangle(0, 0, getWindowWidth(), getWindowHeight()); _shapeRenderer = new MonoGameShapeRenderer(graphicsDevice, (MonoGameColor)_setColor, _spriteBatch); _rasterizerState = RasterizerNoClipping; _graphicsDevice.ScissorRectangle = new Rectangle(); _font = Mdx.fonts.defaultFont(); updateFilter(); }
public MonoGameGraphics(GraphicsDevice graphicsDevice) { _spriteBatch = new SpriteBatch(graphicsDevice); _graphicsDevice = graphicsDevice; _translation = Vector2.Zero; _scale = Vector2.One; _rotationCenter = Vector2.Zero; _clipRectangle = new org.mini2Dx.core.geom.Rectangle(0, 0, getWindowWidth(), getWindowHeight()); _shapeRenderer = new MonoGameShapeRenderer(graphicsDevice, (MonoGameColor)_setColor, _spriteBatch, _rotationCenter, _translation, _scale, _tint); _rasterizerState = new RasterizerState() { ScissorTestEnable = false }; _graphicsDevice.ScissorRectangle = new Rectangle(); _font = Mdx.fonts.defaultFont(); updateFilter(); }