From 541c00c93fcd98f766cce661aa83ef4ffe713e57 Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 28 Mar 2003 12:30:26 +0000 Subject: First part of the backend separation --- lib/font.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/font.cc') 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(); +} -- cgit v1.2.3