#include <texdef.h>
Public Methods | |
TextureDefinition () | |
TextureDefinition (rvshort _tex, rvfloat _x0,rvfloat _x1,rvfloat _y0,rvfloat _y1) | |
bool | parseTexSpec (const char *str, TextureDefinition *def, Parser &, bool allow_asterisk) |
bool | uv_in_def (rvshort sheet, RV_UV *uv) |
void | rotateRight () |
void | printtex (FILE *) |
Public Attributes | |
rvfloat | x0 |
rvfloat | x1 |
rvfloat | y0 |
rvfloat | y1 |
rvshort | tex |
Private Methods | |
bool | parseTexLetter (char *buf, Parser &, bool allow_asterisk) |
bool | parseSingleNum (char *buf, int *num, Parser &) |
bool | parseNumPair (char *obuf, char sepch, int *i1, int *i2, const char *pairname, Parser &) |
This class provides a common parser for the texture definition syntax in command files together with some functions on them.
|
ctor |
|
|
|
|
|
|
|
|
|
parses the string str for a texture definition (style a:1,2:3x4). Error messages are printed through the given parser.
If allow_asterisk is def is a texture definition from which values are copied if parts contain wildcards. It must point to a valid TextureDefinition instance. default_src_texdef() is there if no special values are needed. str is modified while parsing it. (Split up into substrings) |
|
dumps the texture definition in a human-readible format. |
|
Rotate right 90 degrees. |
|
Returns Does work with TEX_UNKNOWN for both texture definition and argument |
|
May be TEX_UNKNOWN |
|
|
|
|
|
|
|
|