Nuclide
Software Development Kit for id Tech
text.h File Reference

Go to the source code of this file.

Classes

struct  gametext_t
 Definition of a text channel. More...
 

Macros

#define TEXTQUEUE_MAX   6
 

Functions

void GameText_Draw (void)
 Used by Nuclide to draw all active text channels to the screen. More...
 
void GameMessage_Setup (string strMessage, int iChannel)
 Places a message within a specified channel. More...
 
void GameText_Parse (void)
 Used by Nuclide to parse a message delivered by the game_text entity. More...
 
void GameMessage_Parse (void)
 Used by Nuclide to parse a message delivered by the env_message entity. More...
 

Variables

gametext_t g_textchannels [6]
 Global pool of text channels. More...
 
gametext_t g_textqueue [6]
 this is reserved for channel 0 More...
 
int g_textqueue_next
 
int g_textqueue_count
 

Macro Definition Documentation

◆ TEXTQUEUE_MAX

#define TEXTQUEUE_MAX   6

Function Documentation

◆ GameMessage_Parse()

void GameMessage_Parse ( void  )

Used by Nuclide to parse a message delivered by the env_message entity.

See also
env_message

◆ GameMessage_Setup()

void GameMessage_Setup ( string  strMessage,
int  iChannel 
)

Places a message within a specified channel.

We look up a message within our titles.txt file and copy its parameters and string contents into a text channel.

We have 6 channels in total.

Parameters
strMessageis the message we'll look up.
iChannelis the channel it will be stored in.

◆ GameText_Draw()

void GameText_Draw ( void  )

Used by Nuclide to draw all active text channels to the screen.

◆ GameText_Parse()

void GameText_Parse ( void  )

Used by Nuclide to parse a message delivered by the game_text entity.

See also
game_text

Variable Documentation

◆ g_textchannels

gametext_t g_textchannels[6]

Global pool of text channels.

◆ g_textqueue

gametext_t g_textqueue[6]

this is reserved for channel 0

◆ g_textqueue_count

int g_textqueue_count

◆ g_textqueue_next

int g_textqueue_next