15 #include "lwoSurface.h" 16 #include "iffInputFile.h" 17 #include "lwoSurfaceBlock.h" 18 #include "lwoSurfaceColor.h" 19 #include "lwoSurfaceParameter.h" 20 #include "lwoSurfaceSidedness.h" 21 #include "lwoSurfaceSmoothingAngle.h" 41 read_subchunks_iff(in, stop_at);
51 write(ostream &out,
int indent_level)
const {
52 indent(out, indent_level)
54 indent(out, indent_level + 2)
55 <<
"name = \"" << _name <<
"\", source = \"" << _source <<
"\"\n";
56 write_chunks(out, indent_level + 2);
57 indent(out, indent_level)
70 if (
id ==
IffId(
"COLR")) {
73 }
else if (
id ==
IffId(
"DIFF") ||
74 id ==
IffId(
"LUMI") ||
75 id ==
IffId(
"SPEC") ||
76 id ==
IffId(
"REFL") ||
77 id ==
IffId(
"TRAN") ||
78 id ==
IffId(
"TRNL") ||
79 id ==
IffId(
"GLOS") ||
80 id ==
IffId(
"SHRP") ||
81 id ==
IffId(
"BUMP") ||
82 id ==
IffId(
"RSAN") ||
83 id ==
IffId(
"RIND")) {
86 }
else if (
id ==
IffId(
"SIDE")) {
89 }
else if (
id ==
IffId(
"SMAN")) {
92 }
else if (
id ==
IffId(
"BLOK")) {
virtual IffChunk * make_new_chunk(IffInputFile *in, IffId id)
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the con...
virtual IffChunk * make_new_chunk(IffInputFile *in, IffId id)
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the con...
A texture layer or shader, part of a LwoSurface chunk.
virtual bool read_iff(IffInputFile *in, size_t stop_at)
Reads the data of the chunk in from the given input file, if possible.
Records the base color of a surface, as an entry within a LwoSurface chunk.
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on...
Records whether polygons are frontfacing only or backfacing also.
Indicates the maximum angle (in radians) between adjacent polygons that should be smooth-shaded...
TypeHandle is the identifier used to differentiate C++ class types.
A four-byte chunk ID appearing in an "IFF" file.
Records some parameter value of a surface material, as an entry within a LwoSurface chunk...
IffId get_id() const
Returns the ID associated with this chunk.