summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpixel <pixel>2003-04-04 08:04:38 +0000
committerpixel <pixel>2003-04-04 08:04:38 +0000
commit986a589d45841832e3655892f65b773193e277af (patch)
tree9d9945bcf86283f6cf392a09f634e00a6facb43e /src
parent100da29601f0ed1923ca3d6a1db3142929321f38 (diff)
Toying with shapes
Diffstat (limited to 'src')
-rw-r--r--src/test.cc26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/test.cc b/src/test.cc
index d93e50e..2d42107 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -20,12 +20,12 @@ virtual int startup() throw (GeneralException) {
new Archive("datas.paq");
-// 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::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);
@@ -42,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);
@@ -63,7 +63,9 @@ virtual int startup() throw (GeneralException) {
sh->box3d(180, 130, 320, 220);
sh->button(200, 150, 300, 200, "Bouton");
- sh->pcircle(320, 240, 50);
+// for (int j = 0; j < 100; j++) {
+ sh->pcircle(320, 240, 50);
+// }
// sh->arc(320, 240, 50, 0, 0);
sh->box(MIN(sx1, sx2), MIN(sy1, sy2), MAX(sx1, sx2), MAX(sy1, sy2), AlphaBlue);
@@ -76,7 +78,7 @@ virtual int startup() throw (GeneralException) {
s->draw(mogltk::engine::mouseX() - 8, mogltk::engine::mouseY() - 6);
-// gl->Leave2DMode();
+ gl->Leave2DMode();
gl->Flip();