UFO: Alien Invasion
Loading...
Searching...
No Matches
chunkCache_t Struct Reference

This structure holds one piece of text (usually a whole line) and the texture on which it is rendered. It also holds positioning information about the place of this piece in a multiline text. Further information is held in the wrapCache_t struct that points to this struct. More...

Collaboration diagram for chunkCache_t:
Collaboration graph

Data Fields

int pos
int len
int linenum
int width
bool truncated
vec2_t texsize
GLuint texnum

Detailed Description

This structure holds one piece of text (usually a whole line) and the texture on which it is rendered. It also holds positioning information about the place of this piece in a multiline text. Further information is held in the wrapCache_t struct that points to this struct.

Definition at line 48 of file r_font.cpp.

Field Documentation

◆ len

int chunkCache_t::len

length of this chunk in source string

Definition at line 50 of file r_font.cpp.

Referenced by R_FontGenerateTexture().

◆ linenum

int chunkCache_t::linenum

0-based line offset from first line of text

Definition at line 51 of file r_font.cpp.

Referenced by R_FontDrawString().

◆ pos

int chunkCache_t::pos

offset of this chunk in source string

Definition at line 49 of file r_font.cpp.

Referenced by R_FontGenerateTexture().

◆ texnum

GLuint chunkCache_t::texnum

bound texture ID (0 if not textured yet)

Definition at line 56 of file r_font.cpp.

Referenced by R_FontDrawString(), and R_FontGenerateTexture().

◆ texsize

vec2_t chunkCache_t::texsize

texture width and height

Definition at line 55 of file r_font.cpp.

Referenced by R_FontDrawString(), and R_FontGenerateTexture().

◆ truncated

bool chunkCache_t::truncated

needs ellipsis after text

Definition at line 54 of file r_font.cpp.

Referenced by R_FontGenerateTexture().

◆ width

int chunkCache_t::width

text chunk rendered width in pixels

Definition at line 52 of file r_font.cpp.

Referenced by R_FontDrawString(), and R_FontGenerateTexture().


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