Re: [Opengc-devel] Request for Changes to ogcFontManger
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Damion S. <be...@cs...> - 2003-10-28 19:58:43
|
Good suggestion, I'll let you know once I add it. -Damion- On Tuesday, October 28, 2003, at 01:32 PM, Stein,Jeffrey L. wrote: > 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); --------- Damion Shelton The Open Source Glass Cockpit Project (OpenGC) Carnegie Mellon University, Robotics Institute http://www.opengc.org da...@op... |