1 #ifndef GLUT_TEXT_RENDERERS_H
2 #define GLUT_TEXT_RENDERERS_H
4 #include "TextRenderer_A.h"
5 #include "envFreeGlutTools.h"
10 class CBI_FREEGLUT_TOOLS GLUTTextRenderers
: public TextRenderer_A
14 virtual ~GLUTTextRenderers();
16 /*--------------------------------------*\
18 \*-------------------------------------*/
20 int charWidth(int character
, const Font_A
&font
);
21 int textWidth(const char* text
, const Font_A
&font
);
22 int textHeight(const char* text
, const Font_A
&font
);
25 * If font is NULL use the default font!
27 void renderText(float x
, float y
, const char* text
, const Font_A
&font
);
31 * all value are relative to viewport, ie not in pixels !
33 //static void renderBitmapStringCentered(float x, float y, int frameWidth, int frameHight, string title, const Fonts& font);