35 static const char *
const kBlendings[] = {
"default",
"additive",
"punchthrough" };
115 while (!stream.
eos()) {
122 std::sscanf(line.
c_str(),
"%f %f %f",
132 std::sscanf(line.
c_str(),
"%f %f %f",
Blending parseBlending(const char *str)
A class holding an UTF-8 string.
Common::UString bumpMapTexture
virtual bool eos() const =0
Returns true if a read failed because the stream has been reached.
std::vector< Coords > upperLeftCoords
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
void load(Common::SeekableReadStream &stream)
Utility templates and functions for working with strings and streams.
TXICommand
All supported commands in a TXI.
Basic exceptions to throw.
UString readStringLine(SeekableReadStream &stream, Encoding encoding)
Read a line with the given encoding out of a stream.
const char * c_str() const
Return the (utf8 encoded) string data.
Common::UString procedureType
static const char *const kBlendings[]
Utility functions for working with differing string encodings.
uint8 distortionAmplitude
bool empty() const
Is the string empty?
std::vector< Coords > lowerRightCoords
Basic reading stream interfaces.
Texture information types.
Plain, unextended ASCII (7bit clean).
Common::UString controllerScript
TXICommand parseTXICommand(const Common::UString &str, Common::UString &args)
Parse a TXI command from a string.
Common::UString envMapTexture
const Features & getFeatures() const
Common::UString bumpyShinyTexture
Interface for a seekable & readable data stream.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.