Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_FreeGlut_Tools / INC / GLUTTextRenderers.h
1 #ifndef GLUT_TEXT_RENDERERS_H
2 #define GLUT_TEXT_RENDERERS_H
3
4 #include "TextRenderer_A.h"
5 #include "envFreeGlutTools.h"
6
7 #include <string>
8 using std::string;
9
10 class CBI_FREEGLUT_TOOLS GLUTTextRenderers: public TextRenderer_A
11 {
12 public:
13 GLUTTextRenderers();
14 virtual ~GLUTTextRenderers();
15
16 /*--------------------------------------*\
17 |* Surcharge *|
18 \*-------------------------------------*/
19
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);
23
24 /**
25 * If font is NULL use the default font!
26 */
27 void renderText(float x, float y, const char* text, const Font_A &font);
28
29
30 /**
31 * all value are relative to viewport, ie not in pixels !
32 */
33 //static void renderBitmapStringCentered(float x, float y, int frameWidth, int frameHight, string title, const Fonts& font);
34 };
35
36 #endif