38 PT(
IffChunk) chunk = in->get_subchunk(
this);
39 if (chunk ==
nullptr) {
42 if (!chunk->is_of_type(LwoSurfaceBlockHeader::get_class_type())) {
43 nout <<
"Invalid chunk for header of surface block: " << *chunk <<
"\n";
49 read_subchunks_iff(in, stop_at);
57write(std::ostream &out,
int indent_level)
const {
60 _header->write(out, indent_level + 2);
62 write_chunks(out, indent_level + 2);
73 if (
id ==
IffId(
"IMAP") ||
74 id ==
IffId(
"PROC") ||
75 id ==
IffId(
"GRAD") ||
76 id ==
IffId(
"SHDR")) {
79 }
else if (
id ==
IffId(
"TMAP")) {
82 }
else if (
id ==
IffId(
"PROJ")) {
85 }
else if (
id ==
IffId(
"AXIS")) {
88 }
else if (
id ==
IffId(
"IMAG")) {
91 }
else if (
id ==
IffId(
"WRAP")) {
94 }
else if (
id ==
IffId(
"WRPH") ||
95 id ==
IffId(
"WRPW")) {
98 }
else if (
id ==
IffId(
"VMAP")) {
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.
Indicates the axis for this particular shader's projection.
Specifies the particular image that is being applied as a texture.
Indicates the projection mode for this particular shader.
For cylindrical and spherical projections, this parameter controls how many times the image repeats o...
The tMap chunk within a LwoSurfaceBlock chunk.
Specifies the name of a set of UV's defined on the polygons that use this model.
Specifies how the texture image appears for areas outside the image.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.