diff options
author | pixel <pixel> | 2003-03-09 17:45:47 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-09 17:45:47 +0000 |
commit | f05e08bec5e53505cf662d7afd0c7f71b2096bcf (patch) | |
tree | c6c9248583aa90d0d159261f64155c84ce2f191b /src | |
parent | 02ee82a20cc5462ab43fdfa3b0237cd8618bdd97 (diff) |
Testing mouse.
Diffstat (limited to 'src')
-rw-r--r-- | src/test.cc | 26 |
1 files changed, 6 insertions, 20 deletions
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 <generic.h> #include <Main.h> #include <Input.h> +#include <Output.h> #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(); |