/// <summary> /// 完整的初始化 /// </summary> public RenderPoint(string str, EngineColor foreColor, EngineColor backColor, int depth) { this.str = str; this.foreColor = foreColor; this.backColor = backColor; Depth = depth; }
/// <summary> /// 使用默认颜色的字符串初始化 /// </summary> public RenderPoint(string str, int depth) { this.str = str; backColor = RendererSystem.DefaultColorBack; foreColor = RendererSystem.DefaultColorFore; Depth = depth; }
/// <summary> /// 使用前景颜色的字符串初始化 /// </summary> public RenderPoint(string str, EngineColor foreColor, int depth) { this.str = str; this.foreColor = foreColor; backColor = RendererSystem.DefaultColorBack; Depth = depth; }
/// <summary> /// 默认生成纯色材质 /// </summary> public Material(EngineColor ForeColor, EngineColor BackColor) { isFullColor = true; this.ForeColor = ForeColor; this.BackColor = BackColor; }
//自定义初始化 public void Init(int depth, EngineColor foreColor, EngineColor backColor) { this.depth = depth; this.foreColor = foreColor; this.backColor = backColor; }