X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Foverlay.cpp;fp=source%2F3d%2Foverlay.cpp;h=87c49babc773a6854dfe53992d80c5bb9d71eef8;hb=fa7cc825ea7aee9328ecd03b67617847fd128f85;hp=ee9fea7892d465c8e439161cbf4bce17edd0c81f;hpb=d91ab10fd78ef29272282b020fa4e08063cb4808;p=r2c2.git diff --git a/source/3d/overlay.cpp b/source/3d/overlay.cpp index ee9fea7..87c49ba 100644 --- a/source/3d/overlay.cpp +++ b/source/3d/overlay.cpp @@ -8,6 +8,7 @@ Distributed under the GPL #include #include #include +#include #include #include #include @@ -122,7 +123,9 @@ void Overlay3D::render(const GL::Tag &tag) const } GL::translate(0, baseline, 0); - font.draw_string(icon.label); + GL::Immediate imm((GL::TEXCOORD2, GL::COLOR4_UBYTE, GL::VERTEX2)); + imm.color(0.0f, 1.0f, 0.0f); + font.draw_string(icon.label, imm); GL::Texture::unbind(); } @@ -130,6 +133,8 @@ void Overlay3D::render(const GL::Tag &tag) const GL::pop_matrix(); GL::matrix_mode(GL::MODELVIEW); GL::pop_matrix(); + + glColor3f(1.0, 1.0, 1.0); } }