Equalizer  2.1.0
Parallel Rendering Framework
bitmapFont.h
1 
2 /* Copyright (c) 2008-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef EQUTIL_BITMAPFONT_H
19 #define EQUTIL_BITMAPFONT_H
20 
21 #include <eq/api.h>
22 #include <eq/util/types.h>
23 
24 namespace eq
25 {
26 namespace util
27 {
28 namespace detail
29 {
30 class BitmapFont;
31 }
32 
35 {
36 public:
48  EQ_API BitmapFont(ObjectManager& gl, const void* key);
49 
57  EQ_API ~BitmapFont();
58 
74  EQ_API bool init(const WindowSystem& ws, const std::string& name,
75  const uint32_t size = 12);
76 
78  EQ_API void exit();
79 
84  EQ_API void draw(const std::string& text) const;
85 
86 private:
87  BitmapFont(const BitmapFont&) = delete;
88  BitmapFont& operator=(const BitmapFont&) = delete;
89  detail::BitmapFont* const _impl;
90 };
91 }
92 }
93 #endif // EQUTIL_BITMAPFONT_H
A wrapper around AGL, WGL and GLX bitmap fonts.
Definition: bitmapFont.h:34
bool init(const int argc, char **argv, NodeFactory *nodeFactory)
Initialize the Equalizer client library.
Definition: init.h:58
The Equalizer client library.
Definition: eq/agl/types.h:23
A facility class to manage OpenGL objects across shared contexts.
Definition: objectManager.h:56
EQ_API bool exit()
De-initialize the Equalizer client library.