Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Visualization::FontHandler::GetFontBase ( OglGui::Window w  )  [inline]

Definition at line 19 of file FontHandler.h.

References fmLogo, OglGui::OglWindow::GetOGLWND(), ILOG_DEBUG, ILOG_WARN, mFont, mFontBase, and mInit.

Referenced by Impala::Visualization::RotorBrowser::RotorBrowser::Printf3D(), and Impala::Application::Videolympics::VidolviWindow::ShowScores().

00020     {
00021         if (!mInit) {
00022             mInit = true;
00023 #ifndef OGL_USING_GLUT
00024             ILOG_DEBUG("FontHandler: requesting font handle from Windows...");
00025             
00026             const char *fontName = mFont.c_str();
00027 
00028             HFONT font = CreateFontA(
00029                 -12, 0, 0, 0, FW_NORMAL, 0, 0, 0,
00030                 ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS,
00031                 ANTIALIASED_QUALITY, VARIABLE_PITCH | FF_DONTCARE, fontName);
00032 
00033             ILOG_DEBUG("FontHandler: creating 3D font using Windows...");
00034 
00035             mFontBase =
00036               oglSys.Create3DFont( w->GetOGLWND(), font, 1, 0.6f, &fmLogo[0] );
00037 
00038             if (mFontBase == NULL)
00039                 ILOG_WARN("FontHandler: could not create 3D font base!");
00040 
00041             DeleteObject( font );
00042 
00043 #else
00044              ILOG_DEBUG("FontHandler: creating 3D font using GLUT...");
00045             mFontBase =
00046               oglSys.Create3DFont( w->GetOGLWND(), NULL, 1, 0.6f, &fmLogo[0] );
00047 #endif
00048         }
00049         return mFontBase;
00050     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:43:52 2010 for ImpalaSrc by  doxygen 1.5.1