aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/application.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-09-14 22:26:19 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:41:06 +0100
commit780382ab640815e8e92c59d9147432df855359b4 (patch)
tree46042fa245aa4002dc2188b2f1722bce130c1313 /src/menu/application.cpp
parentc85f1cde101d5c6c8912c1131d4d43a828d87015 (diff)
downloadusdx-780382ab640815e8e92c59d9147432df855359b4.tar.gz
usdx-780382ab640815e8e92c59d9147432df855359b4.tar.xz
usdx-780382ab640815e8e92c59d9147432df855359b4.zip
menu: add some comments
Diffstat (limited to '')
-rw-r--r--src/menu/application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index b8392802..6bad5324 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -166,14 +166,17 @@ namespace usdx
// called from the thread owning the OpenGL contect
gl_thread = boost::this_thread::get_id();
+ // set-up the opengl projection matrix
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
-
glOrtho(0.0f, get_width(), get_height(), 0.0f, -1.0f, 1.0f);
+ // reset the modelview matrix
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
+ // the depth layer is not used, so disable the depth test for
+ // higher performance
glDisable(GL_DEPTH_TEST);
}