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; }
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 = ""; }
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; }
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 = ""; }
public RenderOperationWrapper(RenderBox renderBox, DrawCommandType renderOpType) { this.renderBox = renderBox; this.renderOperation = renderOpType; }