Reimplemented from OglGui::Window. Definition at line 194 of file DirImViewer3D.h. References OglGui::Window::InitFunc(), OglGui::OglWindow::mOglWnd, and sTxtFontBase. 00195 { 00196 Window::InitFunc(); 00197 if (sTxtFontBase) 00198 return; 00199 00200 void* font; 00201 00202 #ifdef OGL_USING_GLUT 00203 sTxtFontBase = oglSys.Create3DFont( mOglWnd, font, 1, 0.6f, NULL ); 00204 #else 00205 font = (void*) CreateFont( 00206 -12, 0, 0, 0, FW_NORMAL, 0, 0, 0, 00207 ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, 00208 ANTIALIASED_QUALITY, VARIABLE_PITCH | FF_DONTCARE, "Verdana" ); 00209 00210 // Transform MsWindows fonts to OpenGL fontBases 00211 sTxtFontBase = oglSys.Create3DFont( mOglWnd, font, 1, 0.6f, NULL ); 00212 DeleteObject( (HFONT) font ); // MsWindows font no longer needed 00213 #endif 00214 }
Here is the call graph for this function: ![]()
|