36 read_subchunks_iff(in, stop_at);
44 write(std::ostream &out,
int indent_level)
const {
47 indent(out, indent_level + 2)
48 <<
"name = \"" << _name <<
"\", source = \"" << _source <<
"\"\n";
49 write_chunks(out, indent_level + 2);
60 if (
id ==
IffId(
"COLR")) {
63 }
else if (
id ==
IffId(
"DIFF") ||
64 id ==
IffId(
"LUMI") ||
65 id ==
IffId(
"SPEC") ||
66 id ==
IffId(
"REFL") ||
67 id ==
IffId(
"TRAN") ||
68 id ==
IffId(
"TRNL") ||
69 id ==
IffId(
"GLOS") ||
70 id ==
IffId(
"SHRP") ||
71 id ==
IffId(
"BUMP") ||
72 id ==
IffId(
"RSAN") ||
73 id ==
IffId(
"RIND")) {
76 }
else if (
id ==
IffId(
"SIDE")) {
79 }
else if (
id ==
IffId(
"SMAN")) {
82 }
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Records whether polygons are frontfacing only or backfacing also.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
IffId get_id() const
Returns the ID associated with this chunk.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.