Exemplo n.º 1
0
 public virtual GLEx DrawFlip(Painter texture, float x, float y, LColor color, float rotation)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), 0, 0, texture.Width(), texture.Height(), color, rotation, null, Direction.TRANS_FLIP));
 }
Exemplo n.º 2
0
 public virtual GLEx DrawMirror(Painter texture, float x, float y, LColor color)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), 0, 0, texture.Width(), texture.Height(), color, 0, null, Direction.TRANS_MIRROR));
 }
Exemplo n.º 3
0
 public virtual GLEx Draw(Painter texture, float x, float y, LColor color, float rotation, Vector2f pivot)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), color, rotation, pivot));
 }
Exemplo n.º 4
0
 public virtual GLEx DrawFlip(Painter texture, float x, float y, float w, float h)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, w, h, 0, 0, texture.Width(), texture.Height(), LColor.white, 0f, null, Direction.TRANS_FLIP));
 }
Exemplo n.º 5
0
 public GLEx Draw(Painter texture, float x, float y, LColor color, float rotation)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), 0, 0, texture.Width(), texture.Height(), color, rotation, null, default));
 }
Exemplo n.º 6
0
 public virtual GLEx Draw(Painter texture, float x, float y, float rotation)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), rotation));
 }
Exemplo n.º 7
0
 public GLEx Draw(Painter texture, float x, float y, Direction dir)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), 0, 0, texture.Width(), texture.Height(), null, 0, null, dir));
 }
Exemplo n.º 8
0
 public virtual GLEx DrawFlipScale(Painter texture, float x, float y, float w, float h, LColor color, float scaleX, float scaleY)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, w, h, 0, 0, texture.Width(), texture.Height(), color, 0, scaleX, scaleY, null, Direction.TRANS_FLIP));
 }
Exemplo n.º 9
0
 public virtual GLEx DrawMirrorScale(Painter texture, float x, float y, float w, float h, LColor color, float scaleX, float scaleY, float rotation)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, w, h, 0, 0, texture.Width(), texture.Height(), color, rotation, scaleX, scaleY, null, Direction.TRANS_MIRROR));
 }
Exemplo n.º 10
0
 public virtual GLEx DrawCentered(Painter texture, float x, float y)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x - texture.Width() / 2, y - texture.Height() / 2));
 }
Exemplo n.º 11
0
 public virtual GLEx Draw(Painter texture, float x, float y, LColor color, float rotation, Vector2f origin, Direction dir)
 {
     if (isClosed)
     {
         return(this);
     }
     if (texture == null)
     {
         return(this);
     }
     return(Draw(texture, x, y, texture.Width(), texture.Height(), 0, 0, texture.Width(), texture.Height(), color, rotation, origin, dir));
 }