Equalizer  1.13.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 { class BitmapFont; }
29 
32 {
33 public:
45  EQ_API BitmapFont( ObjectManager& gl, const void* key );
46 
54  EQ_API ~BitmapFont();
55 
71  EQ_API bool init( const WindowSystem& ws, const std::string& name,
72  const uint32_t size = 12 );
73 
75  EQ_API void exit();
76 
81  EQ_API void draw( const std::string& text ) const;
82 
83 private:
84  BitmapFont( const BitmapFont& ) = delete;
85  BitmapFont& operator=( const BitmapFont& ) = delete;
86  detail::BitmapFont* const _impl;
87 };
88 }
89 }
90 #endif // EQUTIL_BITMAPFONT_H
A wrapper around AGL, WGL and GLX bitmap fonts.
Definition: bitmapFont.h:31
EQ_API BitmapFont(ObjectManager &gl, const void *key)
Construct a new bitmap font.
EQ_API void exit()
De-initialize this bitmap font.
EQ_API void draw(const std::string &text) const
Draw text on the current raster position.
EQ_API bool init(const WindowSystem &ws, const std::string &name, const uint32_t size=12)
Initialize this bitmap font.
The Equalizer client library.
Definition: eq/agl/types.h:23
EQ_API ~BitmapFont()
Destruct this bitmap font.
A facility class to manage OpenGL objects across shared contexts.
Definition: objectManager.h:52