From 3e2e4fe9e05d73ba1c1b5de93160bb1cdb7cb56e Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 28 Mar 2003 13:36:38 +0000 Subject: SDL backend mostly finished --- src/test.cc | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3