Reimplemented from OglGui::Window. Definition at line 163 of file DirImViewer3D.h. References OglGui::Window::InitFunc(), OglGui::OglWindow::mOglWnd, and sTxtFontBase. 00164 { 00165 Window::InitFunc(); 00166 if (sTxtFontBase) 00167 return; 00168 00169 void* font; 00170 00171 #ifdef OGL_USING_GLUT 00172 sTxtFontBase = oglSys.Create3DFont( mOglWnd, font, 1, 0.6f, NULL ); 00173 #else 00174 font = (void*) CreateFont( 00175 -12, 0, 0, 0, FW_NORMAL, 0, 0, 0, 00176 ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, 00177 ANTIALIASED_QUALITY, VARIABLE_PITCH | FF_DONTCARE, "Verdana" ); 00178 00179 // Transform MsWindows fonts to OpenGL fontBases 00180 sTxtFontBase = oglSys.Create3DFont( mOglWnd, font, 1, 0.6f, NULL ); 00181 DeleteObject( (HFONT) font ); // MsWindows font no longer needed 00182 #endif 00183 }
Here is the call graph for this function:
|