36 read_subchunks_iff(in, stop_at);
44write(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")) {
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on.
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...
IffId get_id() const
Returns the ID associated with this chunk.
A four-byte chunk ID appearing in an "IFF" file.
A texture layer or shader, part of a LwoSurface chunk.
Records the base color of a surface, as an entry within a LwoSurface chunk.
Records some parameter value of a surface material, as an entry within a LwoSurface chunk.
Records whether polygons are frontfacing only or backfacing also.
Indicates the maximum angle (in radians) between adjacent polygons that should be smooth-shaded.
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 bool read_iff(IffInputFile *in, size_t stop_at)
Reads the data of the chunk in from the given input file, if possible.
TypeHandle is the identifier used to differentiate C++ class types.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.