2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
7 #ifndef CAFU_MATSYS_FONT_HPP_INCLUDED
8 #define CAFU_MATSYS_FONT_HPP_INCLUDED
13 namespace MatSys
{ class RenderMaterialT
; }
16 /// A class for MatSys-based font rendering.
17 /// The only requirement is that the MatSys in fully initialized (the global MatSys::Renderer pointer is set)
18 /// before any object of this class is instantiated.
24 FontT(const std::string
& MaterialName
);
29 /// The copy constructor.
30 FontT(const FontT
& Other
);
32 /// The assignment operator.
33 FontT
& operator = (const FontT
& Other
);
35 /// Prints PrintString at (PosX, PosY) in color Color.
36 void Print(int PosX
, int PosY
, float FrameWidth
, float FrameHeight
, unsigned long Color
, const std::string
& PrintString
);
38 /// Accumulative printing functions. Faster if you have to call Print() a lot.
39 void AccPrintBegin(float FrameWidth
, float FrameHeight
);
40 void AccPrint(int PosX
, int PosY
, unsigned long Color
, const std::string
& PrintString
);
46 MatSys::RenderMaterialT
* RenderMaterial
;