summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-28 13:36:38 +0000
committerpixel <pixel>2003-03-28 13:36:38 +0000
commit3e2e4fe9e05d73ba1c1b5de93160bb1cdb7cb56e (patch)
tree49b310acf67fb2dbad7a7f39841d67e01ea2c007 /src
parent541c00c93fcd98f766cce661aa83ef4ffe713e57 (diff)
SDL backend mostly finished
Diffstat (limited to 'src')
-rw-r--r--src/test.cc23
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();