Exemple #1
0
 public virtual GLEx Reset()
 {
     if (isClosed)
     {
         return(this);
     }
     tmpColor.SetColor(this.lastBrush.baseColor);
     return(Reset(tmpColor.r, tmpColor.g, tmpColor.b, tmpColor.a));
 }
Exemple #2
0
 public void set(SpriteRegion sprite)
 {
     if (sprite == null)
     {
         throw new Exception("sprite cannot be null.");
     }
     Array.Copy(sprite.vertices, 0, vertices, 0, 4);
     texture     = sprite.texture;
     xOff        = sprite.xOff;
     yOff        = sprite.yOff;
     widthRatio  = sprite.widthRatio;
     heightRatio = sprite.heightRatio;
     x           = sprite.x;
     y           = sprite.y;
     width       = sprite.width;
     height      = sprite.height;
     originX     = sprite.originX;
     originY     = sprite.originY;
     rotation    = sprite.rotation;
     scaleX      = sprite.scaleX;
     scaleY      = sprite.scaleY;
     color.SetColor(sprite.color);
     dirty = sprite.dirty;
 }
Exemple #3
0
 public void SetImageColor(float r, float g, float b, float a)
 {
     color.SetColor(r, g, b, a);
 }
Exemple #4
0
 public void Color(LColor c)
 {
     colorsBuffer.Add(c);
     m_color.SetColor(c.r, c.g, c.b, c.a);
     hasCols = true;
 }