![]() |
libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
|
clase base para una fuente 3d o 2d More...
#include <moFontManager.h>
Public Member Functions | |
| moFont () | |
| virtual | ~moFont () |
| moFont (const moFont &src) | |
| moFont & | operator= (const moFont &src) |
| virtual MOboolean | Init () |
| Inicializa el objeto. More... | |
| virtual MOboolean | Init (moFontType p_Type, moText p_fontname, MOint p_size, MOuint glid=0) |
| virtual MOboolean | Finish () |
| Finaliza el objeto, libera recursos. More... | |
| moText | GetName () |
| void | SetSize (MOfloat size) |
| void | Draw (MOfloat x, MOfloat y, moText &text) |
| void | Draw (MOfloat x, MOfloat y, moText &text, moFontSize p_fontsize, MOint set=0, MOfloat sx=1.0, MOfloat sy=1.0, MOfloat rt=0.0) |
| void | SetForegroundColor (MOfloat p_r, MOfloat p_g, MOfloat p_b) |
| void | SetHorizontalJustification (int p_horizontal_justification) |
| void | SetStringRotation (MOfloat p_string_rotation) |
Public Member Functions inherited from moAbstract | |
| moAbstract () | |
| virtual | ~moAbstract () |
| MOboolean | Initialized () |
| Pregunta si está inicializado. More... | |
Protected Member Functions | |
| void | BuildFont () |
| void | glPrint (GLint x, GLint y, char *string, int set, float scx, float scy, float rt) |
| void | KillFont () |
Protected Attributes | |
| moText | m_Name |
| moFontSize | m_FontSize |
| moFontFace * | m_pFace |
| GLuint | m_GLBaseList |
| GLuint | m_FontGLId |
Additional Inherited Members | |
Public Attributes inherited from moAbstract | |
| MOboolean | m_bInitialized |
| Valor de inicialización More... | |
Static Public Attributes inherited from moAbstract | |
| static moDebug * | MODebug2 = new moDebug() |
| Clase de impresión de errores para depuración More... | |
| static moTextHeap * | MODebug = new moTextHeap() |
| Lista de textos. More... | |
clase base para una fuente 3d o 2d
Implementada a través de la librería freetype y OGLFT, permite crear y manipular tipografías vectoriales.
Definition at line 63 of file moFontManager.h.
| moFont::moFont | ( | ) |
Definition at line 276 of file moFontManager.cpp.
|
virtual |
Definition at line 284 of file moFontManager.cpp.
|
inline |
Definition at line 69 of file moFontManager.h.
|
protected |
Definition at line 474 of file moFontManager.cpp.
Definition at line 434 of file moFontManager.cpp.
| void moFont::Draw | ( | MOfloat | x, |
| MOfloat | y, | ||
| moText & | text, | ||
| moFontSize | p_fontsize, | ||
| MOint | set = 0, |
||
| MOfloat | sx = 1.0, |
||
| MOfloat | sy = 1.0, |
||
| MOfloat | rt = 0.0 |
||
| ) |
const wchar_t GetWC(const char *c) { const size_t cSize = strlen(c)+1; wchar_t wc = new wchar_t[cSize]; mbstowcs (wc, c, cSize);
return wc; }
Definition at line 449 of file moFontManager.cpp.
|
virtual |
Finaliza el objeto, libera recursos.
Función de finalización. Libera los recursos generados en la función de inicialización.
Reimplemented from moAbstract.
Definition at line 388 of file moFontManager.cpp.
| moText moFont::GetName | ( | ) |
Definition at line 467 of file moFontManager.cpp.
|
protected |
Definition at line 509 of file moFontManager.cpp.
|
virtual |
Inicializa el objeto.
Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.
Reimplemented from moAbstract.
Definition at line 289 of file moFontManager.cpp.
|
virtual |
Definition at line 294 of file moFontManager.cpp.
|
protected |
Definition at line 541 of file moFontManager.cpp.
Definition at line 72 of file moFontManager.h.
Definition at line 411 of file moFontManager.cpp.
| void moFont::SetHorizontalJustification | ( | int | p_horizontal_justification | ) |
Definition at line 416 of file moFontManager.cpp.
| void moFont::SetSize | ( | MOfloat | size | ) |
Definition at line 401 of file moFontManager.cpp.
| void moFont::SetStringRotation | ( | MOfloat | p_string_rotation | ) |
Definition at line 425 of file moFontManager.cpp.
|
protected |
Definition at line 110 of file moFontManager.h.
|
protected |
Definition at line 99 of file moFontManager.h.
|
protected |
Definition at line 109 of file moFontManager.h.
|
protected |
Definition at line 98 of file moFontManager.h.
|
protected |
Definition at line 102 of file moFontManager.h.