|
UFO: Alien Invasion
|
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 |
| bool | truncated |
| vec2_t | texsize |
| GLuint | texnum |
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.
| int chunkCache_t::len |
length of this chunk in source string
Definition at line 50 of file r_font.cpp.
Referenced by R_FontGenerateTexture().
| 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().
| int chunkCache_t::pos |
offset of this chunk in source string
Definition at line 49 of file r_font.cpp.
Referenced by R_FontGenerateTexture().
| 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().
| 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().
| bool chunkCache_t::truncated |
needs ellipsis after text
Definition at line 54 of file r_font.cpp.
Referenced by R_FontGenerateTexture().
| 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().