Planeshift
|
#include <pseffectobjtext.h>
Public Member Functions | |
psEffectObj * | Clone () const |
Clones the effect object. | |
bool | Load (iDocumentNode *node, iLoaderContext *ldr_context) |
Loads the effect object from an xml node. | |
psEffectObjText (iView *parentView, psEffect2DRenderer *renderer2d) | |
virtual bool | SetText (int rows,...) |
virtual bool | SetText (const csArray< psEffectTextRow > &rows) |
virtual bool | SetText (const csArray< psEffectTextElement > &elements) |
Creates a material that will fit an array of text elements and draws those elements. | |
~psEffectObjText () | |
Protected Member Functions | |
void | DrawTextElement (const psEffectTextElement &element) |
bool | PostSetup () |
performs the post setup (after the effect obj has been loaded). | |
int | ToPowerOf2 (int n) |
Definition at line 41 of file pseffectobjtext.h.
psEffectObjText::psEffectObjText | ( | iView * | parentView, |
psEffect2DRenderer * | renderer2d | ||
) |
psEffectObjText::~psEffectObjText | ( | ) |
psEffectObj* psEffectObjText::Clone | ( | ) | const [virtual] |
Clones the effect object.
This will almost always be overloaded.
Reimplemented from psEffectObjQuad.
void psEffectObjText::DrawTextElement | ( | const psEffectTextElement & | element | ) | [protected] |
bool psEffectObjText::Load | ( | iDocumentNode * | node, |
iLoaderContext * | ldr_context | ||
) | [virtual] |
Loads the effect object from an xml node.
node | the xml node containing the effect object, must be valid |
ldr_context | the current loader context. |
Reimplemented from psEffectObjQuad.
bool psEffectObjText::PostSetup | ( | ) | [protected, virtual] |
performs the post setup (after the effect obj has been loaded).
Things like create mesh factory, etc are initialized here.
Reimplemented from psEffectObjQuad.
virtual bool psEffectObjText::SetText | ( | const csArray< psEffectTextElement > & | elements | ) | [virtual] |
Creates a material that will fit an array of text elements and draws those elements.
Implements psEffectObjTextable.
virtual bool psEffectObjText::SetText | ( | const csArray< psEffectTextRow > & | rows | ) | [virtual] |
Implements psEffectObjTextable.
virtual bool psEffectObjText::SetText | ( | int | rows, |
... | |||
) | [virtual] |
Implements psEffectObjTextable.
Definition at line 86 of file pseffectobjtext.h.