summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpixel <pixel>2002-12-21 12:39:15 +0000
committerpixel <pixel>2002-12-21 12:39:15 +0000
commite6dc945aaa53b0739148b5ba4ebf7f8870e64370 (patch)
tree8b1d2e381a69da41eb755268495370b052ed07d7 /src
parentf4b6e956b0853970989fd349af861d81537c1237 (diff)
Commit of the day.
Diffstat (limited to 'src')
-rw-r--r--src/font-2.binbin0 -> 162407 bytes
-rw-r--r--src/font.binbin0 -> 66823 bytes
-rw-r--r--src/test.cc24
3 files changed, 17 insertions, 7 deletions
diff --git a/src/font-2.bin b/src/font-2.bin
new file mode 100644
index 0000000..4cac824
--- /dev/null
+++ b/src/font-2.bin
Binary files differ
diff --git a/src/font.bin b/src/font.bin
new file mode 100644
index 0000000..10e1b48
--- /dev/null
+++ b/src/font.bin
Binary files differ
diff --git a/src/test.cc b/src/test.cc
index 5289762..344a737 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -11,7 +11,7 @@ virtual int startup() throw (GeneralException) {
Uint8 * texture;
verbosity = M_INFO;
mogltk::glbase::setup();
- Input ffont("font.bin");
+ Input ffont("font-2.bin");
mogltk::font font(&ffont);
verbosity = M_INFO;
@@ -77,16 +77,26 @@ virtual int startup() throw (GeneralException) {
glColor3d(0, 0, 1);
glVertex2f(450, 150);
glEnd();
- mogltk::glbase::Leave2DMode();
+
+ glBegin(GL_TRIANGLE_STRIP);
+ CORNFLOWERBLUE.Bind();
+ glVertex2f( 5, 5);
+ DEEPSKYBLUE.Bind();
+ glVertex2f(150, 5);
+ MIDNIGHTBLUE.Bind();
+ glVertex2f( 5, 80);
+ NAVY.Bind();
+ glVertex2f(150, 80);
+ glEnd();
+ font.setshadow(1);
font.putcursor(10, 10);
font.setcolor(Color(255, 0, 0));
- font.printf("PixelPawa!");
- font.newline();
- font.printf("It works!!");
- font.newline();
- font.printf("I can't believe it!");
+ font.printf("PixelPawa!\n");
+ font.printf("It works!!\n");
+ font.printf("I can't believe it!\n");
+ mogltk::glbase::Leave2DMode();
mogltk::glbase::Flip();
// sleep(15);