From f05e08bec5e53505cf662d7afd0c7f71b2096bcf Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 9 Mar 2003 17:45:47 +0000 Subject: Testing mouse. --- src/test.cc | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/test.cc b/src/test.cc index b09c00d..ed2cd4a 100644 --- a/src/test.cc +++ b/src/test.cc @@ -3,6 +3,7 @@ #include #include #include +#include #include "glbase.h" #include "gltexture.h" #include "glfont.h" @@ -11,9 +12,8 @@ CODE_BEGINS virtual int startup() throw (GeneralException) { - verbosity = M_INFO; mogltk::glbase::setup(); -// new Archive("datas.paq"); + new Archive("datas.paq"); Input * fonte = new Input("font-2.bin"); mogltk::font font(fonte); delete fonte; @@ -22,7 +22,7 @@ virtual int startup() throw (GeneralException) { mogltk::Sprite * s = new mogltk::Sprite(cursor, 25, 25); delete cursor; - verbosity = M_INFO; + mogltk::engine::setcursorvisible(true); Input * pattern = new Input("pattern6.tex"); mogltk::texture * mytex = new mogltk::texture(pattern, true); @@ -72,6 +72,7 @@ virtual int startup() throw (GeneralException) { NAVY.Bind(); glVertex2f(150, 80); glEnd(); + font.setshadow(1); font.putcursor(10, 30); font.setcolor(WHITE); @@ -80,23 +81,8 @@ virtual int startup() throw (GeneralException) { "It works!!\n" "I can't believe it!\n" ); - - s->draw( 50, 50); - s->draw(100, 50); - s->draw(150, 50); - s->draw(200, 50); - s->draw( 50, 100); - s->draw(100, 100); - s->draw(150, 100); - s->draw(200, 100); - s->draw( 50, 150); - s->draw(100, 150); - s->draw(150, 150); - s->draw(200, 150); - s->draw( 50, 200); - s->draw(100, 200); - s->draw(150, 200); - s->draw(200, 200); + + s->draw(mogltk::engine::mouseX(), mogltk::engine::mouseY()); mogltk::glbase::Leave2DMode(); mogltk::glbase::Flip(); -- cgit v1.2.3