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 void setColor(Color color) { _setColor = color; _shapeRenderer.setColor(MonoGameColor.toArgb(_setColor)); }