Table of Contents

 
RenderTexts
 

Purpose

Renders all the text objects or a batch of exclusive objects

 

Protoype

void CTextMngr::RenderTexts (batch br_texts = batch())
 

Description

Every frame this function should be called in order to display the visible text objects on the screen when it is redrawn. This function also automatically handles the delay of texts if it is enabled for a text object. This function also automatically switches the font for each text object so that text objects can all have different fonts and are displayed in their fonts properly. If you want to render only a certain number of texts, you can create a batch list and pass that to the function.

 

Use

CTextMngr text;
// normal text rendering
text.RenderTexts();
// batch render of texts
batch br_texts;
br_texts.push_back("texts1");
br_texts.push_back("texts2");
text.RenderTexts(br_texts);
 

Prev: RemoveText