public void SetMenuBar(MenuBar mb) { this.menuBar = mb; }
public abstract void PaintMenuBar(MenuBar pMenuBar);
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(); }