Exemplo n.º 1
0
 public void setTint(Color tint)
 {
     _tint.R = tint.getRAsByte();
     _tint.G = tint.getGAsByte();
     _tint.B = tint.getBAsByte();
     _tint.A = tint.getAAsByte();
 }
Exemplo n.º 2
0
 public void setColor(Color tint)
 {
     _currentColor = (MonoGameColor)_currentColor.copy();
     _currentColor.setR(tint.rf());
     _currentColor.setG(tint.gf());
     _currentColor.setB(tint.bf());
     _currentColor.setA(tint.af());
 }
Exemplo n.º 3
0
 public void setTint(Color tint)
 {
     _tint.R = tint.getRAsByte();
     _tint.G = tint.getGAsByte();
     _tint.B = tint.getBAsByte();
     _tint.A = tint.getAAsByte();
     _shapeRenderer.setTint(_tint);
 }
Exemplo n.º 4
0
 public void setBackgroundColor(Color backgroundColor)
 {
     _backgroundColor = ((MonoGameColor)backgroundColor).toMonoGameColor();
 }
Exemplo n.º 5
0
 public void setColor(Color color)
 {
     _setColor = color;
     _shapeRenderer.setColor((MonoGameColor)_setColor);
 }
Exemplo n.º 6
0
 public override Color newReadOnlyColor(Color color)
 {
     return(new MonoGameReadOnlyColor(color.rb(), color.gb(), color.bb(), color.ab()));
 }
Exemplo n.º 7
0
 public void clearContext(Color c, bool depthBufferBit, bool colorBufferBit)
 {
     internalClearContext((c as MonoGameColor)._color, depthBufferBit, colorBufferBit);
 }
Exemplo n.º 8
0
 public void clearContext(Color c)
 {
     clearContext(c, true, true);
 }
Exemplo n.º 9
0
 public Color newColor(Color color)
 {
     return(new MonoGameColor(color.rb(), color.gb(), color.bb(), color.ab()));
 }
Exemplo n.º 10
0
 public void setColor(Color color)
 {
     _setColor = color;
     _shapeRenderer.setColor(MonoGameColor.toArgb(_setColor));
 }