diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test.cc | 23 | 
1 files changed, 14 insertions, 9 deletions
diff --git a/src/test.cc b/src/test.cc index 645e033..5bdb0ce 100644 --- a/src/test.cc +++ b/src/test.cc @@ -16,11 +16,16 @@ CODE_BEGINS  virtual int startup() throw (GeneralException) {      int sx1, sx2, sy1, sy2;      double t = 0; -    verbosity = M_INFO; -    mogltk::glbase * gl = new mogltk::glbase(); -    mogltk::glshape * sh = new mogltk::glshape(); +//    verbosity = M_INFO; +      new Archive("datas.paq"); -    mogltk::glfont * font = new mogltk::glfont(&Input("font-2.bin")); + +//    mogltk::glbase * gl = new mogltk::glbase(); +//    mogltk::glshape * sh = new mogltk::glshape(); +//    mogltk::glfont * font = new mogltk::glfont(&Input("font-2.bin")); +    mogltk::base * gl = new mogltk::base(); +    mogltk::shape * sh = new mogltk::shape(); +    mogltk::font * font = new mogltk::font(&Input("font-2.bin"));      mogltk::Sprite * s = new mogltk::Sprite(&Input("cursor.rgba"), 25, 25);      mogltk::engine::setcursorvisible(true); @@ -37,12 +42,12 @@ virtual int startup() throw (GeneralException) {  	sy1 = 240 + 240 * sin(0.692 * t + 8.21);  	sy2 = 240 + 240 * sin(1.029 * t + 2.42); -	gl->Enter2DMode(); +//	gl->Enter2DMode(); -	sh->tbox(mytex, 50, 50, 561, 561, BLACK, RED, LIME, BLUE); -	sh->box(400, 100, 450, 150, BLACK, RED, LIME, BLUE);     +//	sh->tbox(mytex, 50, 50, 561, 561, BLACK, RED, LIME, BLUE); +//	sh->box(400, 100, 450, 150, BLACK, RED, LIME, BLUE);     -	sh->box(5, 5, 150, 80, CORNFLOWERBLUE, DEEPSKYBLUE, MIDNIGHTBLUE, NAVY); +//	sh->box(5, 5, 150, 80, CORNFLOWERBLUE, DEEPSKYBLUE, MIDNIGHTBLUE, NAVY);  	font->setshadow(1);  	font->putcursor(10, 30);  	font->setcolor(WHITE); @@ -68,7 +73,7 @@ virtual int startup() throw (GeneralException) {  	s->draw(mogltk::engine::mouseX() - 8, mogltk::engine::mouseY() - 6); -	gl->Leave2DMode(); +//	gl->Leave2DMode();  	gl->Flip();  | 
