Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Displayable / INC / TextRenderer_A.h
1 #ifndef TEXT_RENDERER_A_H
2 #define TEXT_RENDERER_A_H
3
4 #include "envBilatDisplayable.h"
5 #include "Font_A.h"
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class CBI_DISPLAYABLE TextRenderer_A
16 {
17 // enum VertialAlignement {TOP,CENTER,BOTTOM};
18 // enum HorizontalAlignement {LEFT,CENTER,RIGHT};
19 public:
20 virtual ~TextRenderer_A()
21 {
22 }
23
24 virtual int charWidth(int character,const Font_A &font)=0;
25
26 virtual int textWidth(const char* text,const Font_A &font) =0;
27
28 virtual int textHeight(const char* text,const Font_A &font) =0;
29
30 /**
31 * If font is NULL use the default font!
32 */
33 virtual void renderText(float x, float y, const char* text, const Font_A &font)=0;
34 };
35
36 #endif
37
38 /*----------------------------------------------------------------------*\
39 |* End *|
40 \*---------------------------------------------------------------------*/