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