diff options
author | pixel <pixel> | 2003-03-09 21:19:43 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-09 21:19:43 +0000 |
commit | ca8754a3a2296ff2842c781d1936dd47cecb3c9f (patch) | |
tree | e2039b132e2797d26cd3c035f357ce0f9a5a3b39 /src | |
parent | 4270ce9ebc2bf9e0f2da695ec9b02857d62f5c13 (diff) |
FPS
Diffstat (limited to 'src')
-rw-r--r-- | src/test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test.cc b/src/test.cc index e56b6f4..64ed569 100644 --- a/src/test.cc +++ b/src/test.cc @@ -12,7 +12,6 @@ CODE_BEGINS virtual int startup() throw (GeneralException) { - verbosity = M_INFO; mogltk::glbase::setup(); new Archive("datas.paq"); Input * fonte = new Input("font-2.bin"); @@ -24,6 +23,7 @@ virtual int startup() throw (GeneralException) { delete cursor; mogltk::engine::setcursorvisible(true); + mogltk::engine::setappactive(true); Input * pattern = new Input("pattern6.tex"); mogltk::texture * mytex = new mogltk::texture(pattern, true); @@ -82,6 +82,9 @@ virtual int startup() throw (GeneralException) { "It works!!\n" "I can't believe it!\n" ); + + font.putcursor(550, 450); + font.printf("FPS: %.2f", mogltk::engine::FPS()); s->draw(mogltk::engine::mouseX(), mogltk::engine::mouseY()); |