commit 4cf3681df350aa63a3009dd605944ad4421eebca
parent 395d2d8f40a05bc10ba31ca3fc1518549f7b472e
Author: Brian Swetland <swetland@frotz.net>
Date: Sat, 6 Jul 2013 01:00:37 -0700
hello: display fps, keep text in front
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hello/hello.cc b/hello/hello.cc
@@ -207,11 +207,13 @@ oops:
text.printf(0, 0, "rx: %8.4f", rx);
text.printf(0, 1, "ry: %8.4f", ry);
text.printf(0, 2, "zm: %8.4f", zoom);
- text.printf(0, -1, "hello.cc");
+ text.printf(0, -1, "%d fps", fps);
+ glDisable(GL_DEPTH_TEST);
glEnable(GL_BLEND);
text.render(this);
glDisable(GL_BLEND);
+ glEnable(GL_DEPTH_TEST);
}
App *createApp(void) {