nux-0.9.46

nux::FontRenderer Class Reference

#include <NuxGraphics/FontRenderer.h>

Public Member Functions

 FontRenderer (GraphicsEngine &OpenGLEngine)
 ~FontRenderer ()
int DrawColorString (ObjectPtr< FontTexture > Font, int x, int y, const NString &str, const Color &color, bool WriteAlphaChannel, int NumCharacter=0, int SkipFirstNCharacters=0)
void PositionString (ObjectPtr< FontTexture > Font, const NString &str, const PageBBox &, StringBBox &, TextAlignment align=eAlignTextCenter, int NumCharacter=0)
int RenderColorText (ObjectPtr< FontTexture > Font, int x, int y, const NString &Str, const Color &color, bool WriteAlphaChannel, int NumCharacter)
int RenderColorTextLineStatic (ObjectPtr< FontTexture > Font, const PageBBox &pageSize, const NString &Str, const Color &color, bool WriteAlphaChannel, TextAlignment alignment)
int RenderColorTextLineEdit (ObjectPtr< FontTexture > Font, const PageBBox &pageSize, const NString &Str, const Color &TextColor, bool WriteAlphaChannel, const Color &SelectedTextColor, const Color &SelectedTextBackgroundColor, const Color &TextBlinkColor, const Color &CursorColor, bool ShowCursor, unsigned int CursorPosition, int offset=0, int selection_start=0, int selection_end=0)
int RenderText (ObjectPtr< FontTexture > Font, int x, int y, const NString &str, const Color &color, bool WriteAlphaChannel, int StartCharacter=0, int NumCharacters=0)
int RenderTextToBuffer (float *VertexBuffer, int VBSize, ObjectPtr< FontTexture > Font, Rect geo, const NString &str, const Color &color, TextAlignment alignment=eAlignTextCenter, int NumCharacter=0)

Data Fields

GraphicsEngine & m_OpenGLEngine

Constructor & Destructor Documentation

nux::FontRenderer::FontRenderer ( GraphicsEngine &  OpenGLEngine)
nux::FontRenderer::~FontRenderer ( )

Member Function Documentation

int nux::FontRenderer::DrawColorString ( ObjectPtr< FontTexture >  Font,
int  x,
int  y,
const NString &  str,
const Color &  color,
bool  WriteAlphaChannel,
int  NumCharacter = 0,
int  SkipFirstNCharacters = 0 
)
void nux::FontRenderer::PositionString ( ObjectPtr< FontTexture >  Font,
const NString &  str,
const PageBBox &  ,
StringBBox &  ,
TextAlignment  align = eAlignTextCenter,
int  NumCharacter = 0 
)
int nux::FontRenderer::RenderColorText ( ObjectPtr< FontTexture >  Font,
int  x,
int  y,
const NString &  Str,
const Color &  color,
bool  WriteAlphaChannel,
int  NumCharacter 
)
int nux::FontRenderer::RenderColorTextLineEdit ( ObjectPtr< FontTexture >  Font,
const PageBBox &  pageSize,
const NString &  Str,
const Color &  TextColor,
bool  WriteAlphaChannel,
const Color &  SelectedTextColor,
const Color &  SelectedTextBackgroundColor,
const Color &  TextBlinkColor,
const Color &  CursorColor,
bool  ShowCursor,
unsigned int  CursorPosition,
int  offset = 0,
int  selection_start = 0,
int  selection_end = 0 
)
int nux::FontRenderer::RenderColorTextLineStatic ( ObjectPtr< FontTexture >  Font,
const PageBBox &  pageSize,
const NString &  Str,
const Color &  color,
bool  WriteAlphaChannel,
TextAlignment  alignment 
)
int nux::FontRenderer::RenderText ( ObjectPtr< FontTexture >  Font,
int  x,
int  y,
const NString &  str,
const Color &  color,
bool  WriteAlphaChannel,
int  StartCharacter = 0,
int  NumCharacters = 0 
)
int nux::FontRenderer::RenderTextToBuffer ( float *  VertexBuffer,
int  VBSize,
ObjectPtr< FontTexture >  Font,
Rect  geo,
const NString &  str,
const Color &  color,
TextAlignment  alignment = eAlignTextCenter,
int  NumCharacter = 0 
)

Field Documentation


The documentation for this class was generated from the following file: