Go to the documentation of this file.
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);
56 void LwoSurfaceBlock::
57 write(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")) {
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
For cylindrical and spherical projections, this parameter controls how many times the image repeats o...
Indicates the projection mode for this particular shader.
The tMap chunk within a LwoSurfaceBlock chunk.
Specifies how the texture image appears for areas outside the image.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool read_iff(IffInputFile *in, size_t stop_at)
Reads the data of the chunk in from the given input file, if possible.
Specifies the particular image that is being applied as a texture.
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.
IffId get_id() const
Returns the ID associated with this chunk.
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.
Specifies the name of a set of UV's defined on the polygons that use this model.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Indicates the axis for this particular shader's projection.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.