Last change
on this file since 6685 was
5515,
checked in by bensch, 19 years ago
|
orxonox/trunk: unloading of fonts now without a Warning from the ResourceManager
|
File size:
1.1 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file text_engine.h |
---|
3 | * Definition of textEngine, the Font and the Text |
---|
4 | * |
---|
5 | * Text is the text outputed. |
---|
6 | * Font is a class that loads a certain ttf-file with a specific height into memory |
---|
7 | * TextEngine is used to manage the all the different Fonts that might be included |
---|
8 | * |
---|
9 | * for more information see the specific classes. |
---|
10 | * |
---|
11 | * !! IMPORTANT !! When using ttf fonts clear the license issues prior to |
---|
12 | * adding them to orxonox. This is really important, because we do not want |
---|
13 | * to offend anyone. |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _TEXT_ENGINE_H |
---|
17 | #define _TEXT_ENGINE_H |
---|
18 | |
---|
19 | #include "base_object.h" |
---|
20 | |
---|
21 | // FORWARD DECLARATION |
---|
22 | |
---|
23 | //! A singleton Class that operates as a Handler initializing FONTS. |
---|
24 | class TextEngine : public BaseObject |
---|
25 | { |
---|
26 | public: |
---|
27 | virtual ~TextEngine(); |
---|
28 | /** @returns a Pointer to the only object of this Class */ |
---|
29 | inline static TextEngine* getInstance() { if (!singletonRef) singletonRef = new TextEngine(); return singletonRef; }; |
---|
30 | |
---|
31 | void debug() const; |
---|
32 | |
---|
33 | private: |
---|
34 | TextEngine(); |
---|
35 | static TextEngine* singletonRef; |
---|
36 | |
---|
37 | // general |
---|
38 | static void enableFonts(); |
---|
39 | static void disableFonts(); |
---|
40 | static bool checkVersion(); |
---|
41 | }; |
---|
42 | |
---|
43 | #endif /* _TEXT_ENGINE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.