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...

Data Fields

int pos
int len
int linenum
int width
qboolean 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.c.


Field Documentation

length of this chunk in source string

Definition at line 50 of file r_font.c.

Referenced by R_FontGenerateTexture(), and R_FontMakeChunks().

0-based line offset from first line of text

Definition at line 51 of file r_font.c.

Referenced by R_FontDrawString(), and R_FontMakeChunks().

offset of this chunk in source string

Definition at line 49 of file r_font.c.

Referenced by R_FontGenerateTexture(), and R_FontMakeChunks().

bound texture ID (0 if not textured yet)

Definition at line 56 of file r_font.c.

Referenced by R_FontDrawString(), and R_FontGenerateTexture().

texture width and height

Definition at line 55 of file r_font.c.

Referenced by R_FontDrawString(), and R_FontGenerateTexture().

needs ellipsis after text

Definition at line 54 of file r_font.c.

Referenced by R_FontGenerateTexture(), R_FontMakeChunks(), R_FontTextSize(), and R_FontWrapText().

text chunk rendered width in pixels

Definition at line 52 of file r_font.c.

Referenced by R_FontDrawString(), R_FontGenerateTexture(), R_FontMakeChunks(), R_FontTextSize(), and R_FontWrapText().


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

Generated by  doxygen 1.6.2