[Opengc-devel] Request for Changes to ogcFontManger
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Stein,Jeffrey L. <js...@mi...> - 2003-10-28 18:32:38
|
I was wondering if you would be adverse to adding the following overloaded methods to the print manager. It simply allows the calling of a print command with a c++ style string. -------- ogcFontManger.cpp -------------- void ogcFontManager::Print(double x, double y, string text, int font) { if( (font >= 0) && (font < m_NumFonts) ) { m_FontList[font]->Print(x,y, (char*)text.c_str()); } } ---------- ogcFontManager.h ------------- //! Print a character string at location (x,y) using specified font void Print(double x, double y, string text, int font); |