button is draw by menu

This commit is contained in:
Remco
2016-06-20 12:11:24 +02:00
parent ced3ff4462
commit 6cf9437620
6 changed files with 17 additions and 12 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include <GL\freeglut.h>
#include "Menu.h"
#include "CrystalPoint.h"
Menu::Menu()
{
@@ -16,7 +17,7 @@ void Menu::draw(void)
//Switch view to Ortho
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, 1000, 1000, 0, -10, 10);
glOrtho(0, CrystalPoint::width, CrystalPoint::height, 0, -10, 10);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();