summaryrefslogtreecommitdiff
path: root/lib/font.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-28 12:30:26 +0000
committerpixel <pixel>2003-03-28 12:30:26 +0000
commit541c00c93fcd98f766cce661aa83ef4ffe713e57 (patch)
tree2300eff5c56164578988d4f4d57147c60657c7ad /lib/font.cc
parentbe0486797260377246c1ea1229cca27c19c64ad2 (diff)
First part of the backend separation
Diffstat (limited to 'lib/font.cc')
-rw-r--r--lib/font.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/font.cc b/lib/font.cc
index 204e60d..9e77ae2 100644
--- a/lib/font.cc
+++ b/lib/font.cc
@@ -167,7 +167,7 @@ void mogltk::font::drawentry(Uint16 entry, int x, int y, ColorP c) {
int trueentry, cx, cy, px, py;
return;
-
+#if 0
was2D = mogltk::glbase::is2D();
if (!was2D)
@@ -201,6 +201,7 @@ void mogltk::font::drawentry(Uint16 entry, int x, int y, ColorP c) {
if (!was2D)
mogltk::glbase::Leave2DMode();
+#endif
}
void mogltk::font::putcursor(int x, int y) {
@@ -318,3 +319,7 @@ mogltk::font * mogltk::SystemFont;
mogltk::texture * mogltk::font::alloctexture() {
return new mogltk::texture(256, 256);
}
+
+void mogltk::font::Bind(int f) {
+ fonttex[f]->Bind();
+}