Example #1
0
 public DrawCommand(string String, float zindex, Rect Drect, Color shade)
 {
     tex_id          = TextureID.font;
     Zindex          = zindex;
     SourceRectangle = Rect.Zero;
     DestRectangle   = Drect;
     Type            = DrawCommandType.DrawString;
     tint            = shade;
     str             = String;
 }
Example #2
0
 public DrawCommand(TextureID textureID, float zindex, Rect Drect, Color shade)
 {
     tex_id          = textureID;
     Zindex          = zindex;
     SourceRectangle = Rect.Zero;
     DestRectangle   = Drect;
     Type            = DrawCommandType.DrawTexture;
     tint            = shade;
     str             = "";
 }
Example #3
0
 public DrawCommand(string String, float zindex, Rect Srect, Rect Drect, Color shade)
 {
     tex_id          = 0;
     Zindex          = zindex;
     SourceRectangle = Srect;
     DestRectangle   = Drect;
     Type            = DrawCommandType.DrawString;
     tint            = shade;
     str             = String;
 }
Example #4
0
 public DrawCommand(TextureID textureID, float zindex, Rect Srect, Rect Drect)
 {
     tex_id          = textureID;
     Zindex          = zindex;
     SourceRectangle = Srect;
     DestRectangle   = Drect;
     Type            = DrawCommandType.DrawTexture;
     tint            = Color.White;
     str             = "";
 }
Example #5
0
 public RenderOperationWrapper(RenderBox renderBox, DrawCommandType renderOpType)
 {
     this.renderBox       = renderBox;
     this.renderOperation = renderOpType;
 }