Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Render2DSentenceClass Class Reference

#include <render2dsentence.h>

Public Member Functions

 Render2DSentenceClass (void)
 
 ~Render2DSentenceClass ()
 
void Render (void)
 
virtual void Reset (void)
 
void Reset_Polys (void)
 
FontCharsClassPeek_Font (void)
 
void Set_Font (FontCharsClass *font)
 
void Set_Location (const Vector2 &loc)
 
void Set_Base_Location (const Vector2 &loc)
 
bool Set_Wrapping_Width (float width)
 
bool Set_Word_Wrap_Centered (bool isCentered)
 
void Set_Hot_Key_Parse (bool parseHotKey)
 
void Set_Use_Hard_Word_Wrap (bool useHardWrap)
 
void Set_Clipping_Rect (const RectClass &rect)
 
bool Is_Clipping_Enabled (void) const
 
void Enable_Clipping (bool onoff)
 
void Make_Additive (void)
 
ShaderClass Get_Shader (void) const
 
void Set_Shader (ShaderClass shader)
 
const RectClassGet_Draw_Extents (void)
 
Vector2 Get_Text_Extents (const WCHAR *text)
 
Vector2 Get_Formatted_Text_Extents (const WCHAR *text)
 
void Build_Sentence (const WCHAR *text, int *hkX, int *hkY)
 
void Draw_Sentence (uint32 color=0xFFFFFFFF)
 
void Set_Texture_Size_Hint (int hint)
 
int Get_Texture_Size_Hint (void) const
 
void Set_Mono_Spaced (bool onoff)
 

Detailed Description

Definition at line 144 of file render2dsentence.h.

Constructor & Destructor Documentation

◆ Render2DSentenceClass()

Render2DSentenceClass::Render2DSentenceClass ( void )

Definition at line 61 of file render2dsentence.cpp.

◆ ~Render2DSentenceClass()

Render2DSentenceClass::~Render2DSentenceClass ( void )

Definition at line 92 of file render2dsentence.cpp.

Member Function Documentation

◆ Build_Sentence()

void Render2DSentenceClass::Build_Sentence ( const WCHAR * text,
int * hkX,
int * hkY )

Definition at line 1172 of file render2dsentence.cpp.

◆ Draw_Sentence()

void Render2DSentenceClass::Draw_Sentence ( uint32 color = 0xFFFFFFFF)

Definition at line 428 of file render2dsentence.cpp.

◆ Enable_Clipping()

void Render2DSentenceClass::Enable_Clipping ( bool onoff)
inline

Definition at line 174 of file render2dsentence.h.

◆ Get_Draw_Extents()

const RectClass & Render2DSentenceClass::Get_Draw_Extents ( void )
inline

Definition at line 185 of file render2dsentence.h.

◆ Get_Formatted_Text_Extents()

Vector2 Render2DSentenceClass::Get_Formatted_Text_Extents ( const WCHAR * text)

Definition at line 292 of file render2dsentence.cpp.

◆ Get_Shader()

ShaderClass Render2DSentenceClass::Get_Shader ( void ) const
inline

Definition at line 180 of file render2dsentence.h.

◆ Get_Text_Extents()

Vector2 Render2DSentenceClass::Get_Text_Extents ( const WCHAR * text)

Definition at line 270 of file render2dsentence.cpp.

◆ Get_Texture_Size_Hint()

int Render2DSentenceClass::Get_Texture_Size_Hint ( void ) const
inline

Definition at line 202 of file render2dsentence.h.

◆ Is_Clipping_Enabled()

bool Render2DSentenceClass::Is_Clipping_Enabled ( void ) const
inline

Definition at line 173 of file render2dsentence.h.

◆ Make_Additive()

void Render2DSentenceClass::Make_Additive ( void )

Definition at line 175 of file render2dsentence.cpp.

◆ Peek_Font()

FontCharsClass * Render2DSentenceClass::Peek_Font ( void )
inline

Definition at line 154 of file render2dsentence.h.

◆ Render()

void Render2DSentenceClass::Render ( void )

Definition at line 215 of file render2dsentence.cpp.

◆ Reset()

void Render2DSentenceClass::Reset ( void )
virtual

Definition at line 136 of file render2dsentence.cpp.

◆ Reset_Polys()

void Render2DSentenceClass::Reset_Polys ( void )

Definition at line 120 of file render2dsentence.cpp.

◆ Set_Base_Location()

void Render2DSentenceClass::Set_Base_Location ( const Vector2 & loc)

Definition at line 239 of file render2dsentence.cpp.

◆ Set_Clipping_Rect()

void Render2DSentenceClass::Set_Clipping_Rect ( const RectClass & rect)
inline

Definition at line 172 of file render2dsentence.h.

◆ Set_Font()

void Render2DSentenceClass::Set_Font ( FontCharsClass * font)

Definition at line 106 of file render2dsentence.cpp.

◆ Set_Hot_Key_Parse()

void Render2DSentenceClass::Set_Hot_Key_Parse ( bool parseHotKey)
inline

Definition at line 167 of file render2dsentence.h.

◆ Set_Location()

void Render2DSentenceClass::Set_Location ( const Vector2 & loc)

Definition at line 257 of file render2dsentence.cpp.

◆ Set_Mono_Spaced()

void Render2DSentenceClass::Set_Mono_Spaced ( bool onoff)
inline

Definition at line 204 of file render2dsentence.h.

◆ Set_Shader()

void Render2DSentenceClass::Set_Shader ( ShaderClass shader)

Definition at line 193 of file render2dsentence.cpp.

◆ Set_Texture_Size_Hint()

void Render2DSentenceClass::Set_Texture_Size_Hint ( int hint)
inline

Definition at line 201 of file render2dsentence.h.

◆ Set_Use_Hard_Word_Wrap()

void Render2DSentenceClass::Set_Use_Hard_Word_Wrap ( bool useHardWrap)
inline

Definition at line 168 of file render2dsentence.h.

◆ Set_Word_Wrap_Centered()

bool Render2DSentenceClass::Set_Word_Wrap_Centered ( bool isCentered)
inline

Definition at line 163 of file render2dsentence.h.

◆ Set_Wrapping_Width()

bool Render2DSentenceClass::Set_Wrapping_Width ( float width)
inline

Definition at line 159 of file render2dsentence.h.


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