Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public void setColor(Color color)
 {
     _setColor = color;
     _shapeRenderer.setColor(MonoGameColor.toArgb(_setColor));
 }