Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }