X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Displayable%2FINC%2FTextRenderer_A.h;fp=WCudaMSE%2FAPI_Bilat_Displayable%2FINC%2FTextRenderer_A.h;h=607c2893aedab0a70f5679fb17deb388dbcf175e;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Displayable/INC/TextRenderer_A.h b/WCudaMSE/API_Bilat_Displayable/INC/TextRenderer_A.h new file mode 100755 index 0000000..607c289 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/TextRenderer_A.h @@ -0,0 +1,40 @@ +#ifndef TEXT_RENDERER_A_H +#define TEXT_RENDERER_A_H + +#include "envBilatDisplayable.h" +#include "Font_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE TextRenderer_A + { +// enum VertialAlignement {TOP,CENTER,BOTTOM}; +// enum HorizontalAlignement {LEFT,CENTER,RIGHT}; + public: + virtual ~TextRenderer_A() + { + } + + virtual int charWidth(int character,const Font_A &font)=0; + + virtual int textWidth(const char* text,const Font_A &font) =0; + + virtual int textHeight(const char* text,const Font_A &font) =0; + + /** + * If font is NULL use the default font! + */ + virtual void renderText(float x, float y, const char* text, const Font_A &font)=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/