CSharpGL.GLCanvasHelper.DrawClock C# (CSharp) Method

DrawClock() public static method

public static DrawClock ( ) : void
return void
        public static void DrawClock()
        {
            clockRenderer.Render(null);
        }

Usage Example

コード例 #1
0
ファイル: GLSceneCanvas.cs プロジェクト: hhxx1314/CSharpGL
        /// <summary>
        ///
        /// </summary>
        protected virtual void DesignModeRender()
        {
            // Sky blue fore background.
            //OpenGL.ClearColor(0x87 / 255.0f, 0xce / 255.0f, 0xeb / 255.0f, 0xff / 255.0f);
            OpenGL.ClearColor(0, 0, 0, 0);

            //  Clear the color and depth buffer.
            OpenGL.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT | OpenGL.GL_STENCIL_BUFFER_BIT);

            GLCanvasHelper.DrawClock();

            OpenGL.DrawText(10,
                            10, Color.White, "Courier New",// "Courier New",
                            25.0f, this.GetType().FullName);
            if (this.RenderTrigger == RenderTrigger.TimerBased)
            {
                OpenGL.DrawText(10,
                                this.Height - 20 - 1, Color.Red, "Courier New",// "Courier New",
                                20.0f, string.Format("FPS: {0}", this.FPS.ToShortString()));
            }
        }
GLCanvasHelper