bitmapFont.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef EQUTIL_BITMAPFONT_H
00019 #define EQUTIL_BITMAPFONT_H
00020
00021 #include <eq/base/base.h>
00022 #include <eq/client/os.h>
00023 #include <eq/client/windowSystem.h>
00024
00025 #include <string>
00026
00027 namespace eq
00028 {
00029 class Window;
00030 namespace util
00031 {
00032 template< typename T > class ObjectManager;
00033
00035 template< typename OMT > class BitmapFont
00036 {
00037 public:
00039 EQ_EXPORT BitmapFont( ObjectManager< OMT >& gl, const OMT& key );
00040 EQ_EXPORT ~BitmapFont();
00041
00042
00043 EQ_EXPORT bool init( const WindowSystem ws, const std::string& name,
00044 const uint32_t size = 12 );
00045 EQ_EXPORT void exit();
00046 EQ_EXPORT void draw( const std::string& text ) const;
00047
00048 private:
00049 ObjectManager< OMT > _gl;
00050 const OMT _key;
00051
00052 bool _initGLX( const std::string& name, const uint32_t size );
00053 bool _initWGL( const std::string& name, const uint32_t size );
00054 bool _initAGL( const std::string& name, const uint32_t size );
00055
00056 GLuint _setupLists( const GLsizei num );
00057 };
00058 }
00059 }
00060 #endif // EQUTIL_BITMAPFONT_H