예제 #1
0
파일: DebugFontBase.cs 프로젝트: himapo/ccm
        public void Draw(string output, float x, float y, Color fontColor, Color bgColor)
        {
#if DEBUG
            var renderParam = new FontRenderParameter()
            {
                Type = FontRendererType.Sprite,
                FontName = this.FontName,
                Position = new Vector2(x, y),
                FontColor = fontColor,
                BGColor = bgColor,
            };

            RenderManager.RenderFont(CreateFont(output), renderParam);
#endif
        }
예제 #2
0
파일: Font.cs 프로젝트: himapo/ccm
 public abstract void Render(FontRenderParameter param);
예제 #3
0
 public void SetParameter(FontRenderParameter param) { }
예제 #4
0
파일: RenderManager.cs 프로젝트: himapo/ccm
 public void RenderFont(Font primitive, FontRenderParameter renderParam)
 {
     FontInfoList[Buffer].Add(new FontInfo() { Font = primitive, RenderParam = renderParam });
 }