diff options
author | pixel <pixel> | 2002-12-17 01:14:52 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-17 01:14:52 +0000 |
commit | c329122f425342ac620696b40f7421753f70a8b6 (patch) | |
tree | cdaa1f94b60b27ead86246f0fe4b86317e2e3b62 /src | |
parent | f0981aa6b09e67ec57b7cb92421513415292e97f (diff) |
Woo, printf working.
Diffstat (limited to 'src')
-rw-r--r-- | src/test.cc | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/src/test.cc b/src/test.cc index 43abd28..073771b 100644 --- a/src/test.cc +++ b/src/test.cc @@ -68,63 +68,23 @@ virtual int startup() throw (GeneralException) { mogltk::texture::Unbind(); glBegin(GL_TRIANGLE_STRIP); -// glTexCoord2i(0, 0); glColor3d(0, 0, 0); glVertex2f(400, 100); -// glTexCoord2i(256, 0); glColor3d(1, 0, 0); glVertex2f(450, 100); -// glTexCoord2i(0, 256); glColor3d(0, 1, 0); glVertex2f(400, 150); -// glTexCoord2i(256, 256); glColor3d(0, 0, 1); glVertex2f(450, 150); glEnd(); mogltk::glbase::Leave2DMode(); font.putcursor(10, 10); - font.putentry('P'); - font.putentry('i'); - font.putentry('x'); - font.putentry('e'); - font.putentry('l'); - font.putentry('P'); - font.putentry('a'); - font.putentry('w'); - font.putentry('a'); - font.putentry('!'); + font.printf("PixelPawa!"); font.newline(); - font.putentry('I'); - font.putentry('t'); - font.putentry(' '); - font.putentry('w'); - font.putentry('o'); - font.putentry('r'); - font.putentry('k'); - font.putentry('s'); - font.putentry('!'); - font.putentry('!'); + font.printf("It works!!"); font.newline(); - font.putentry('I'); - font.putentry(' '); - font.putentry('c'); - font.putentry('a'); - font.putentry('n'); - font.putentry('\''); - font.putentry('t'); - font.putentry(' '); - font.putentry('b'); - font.putentry('e'); - font.putentry('l'); - font.putentry('i'); - font.putentry('e'); - font.putentry('v'); - font.putentry('e'); - font.putentry(' '); - font.putentry('i'); - font.putentry('t'); - font.putentry('!'); + font.printf("I can't believe it!"); mogltk::glbase::Flip(); |