public virtual GLEx Reset() { if (isClosed) { return(this); } tmpColor.SetColor(this.lastBrush.baseColor); return(Reset(tmpColor.r, tmpColor.g, tmpColor.b, tmpColor.a)); }
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; }
public void SetImageColor(float r, float g, float b, float a) { color.SetColor(r, g, b, a); }
public void Color(LColor c) { colorsBuffer.Add(c); m_color.SetColor(c.r, c.g, c.b, c.a); hasCols = true; }