예제 #1
0
 public void SetMenuBar(MenuBar mb)
 {
     this.menuBar = mb;
 }
예제 #2
0
 public abstract void PaintMenuBar(MenuBar pMenuBar);
예제 #3
0
        public override void PaintMenuBar(MenuBar pMenuBar)
        {
            float x1 = 0.0f;
            float y1 = 0.0f;
            float x2 = pMenuBar.Size.width;
            float y2 = 30.0f;

            GL.Disable(EnableCap.Texture2D);
            GL.Begin(BeginMode.Quads);
            GL.Color4((byte)42, (byte)55, (byte)55, (byte)125);
            GL.Vertex2(x1, y1);
            GL.Vertex2(x1 + 40.0f, y1);
            GL.Vertex2(x1 + 40.0f, y2);
            GL.Vertex2(x1, y2);
            GL.Color3(55 / 255f, 65 / 255f, 67 / 255f);
            GL.Vertex2(x1 + 40.0f, y1);
            GL.Vertex2(x2, y1);
            GL.Vertex2(x2, y2);
            GL.Vertex2(x1 + 40.0f, y2);
            GL.End();
        }
예제 #4
0
 public void SetMenuBar(MenuBar mb)
 {
     this.menuBar = mb;
 }