24 TypeHandle LwoSurfaceBlockHeader::_type_handle;
37 read_subchunks_iff(lin, stop_at);
45 void LwoSurfaceBlockHeader::
46 write(std::ostream &out,
int indent_level)
const {
49 indent(out, indent_level + 2)
50 <<
"ordinal = 0x" << std::hex << std::setfill(
'0');
52 std::string::const_iterator si;
53 for (si = _ordinal.begin(); si != _ordinal.end(); ++si) {
54 out << std::setw(2) << (int)(
unsigned char)(*si);
57 out << std::dec << std::setfill(
' ') <<
"\n";
59 write_chunks(out, indent_level + 2);
70 if (
id ==
IffId(
"CHAN")) {
73 }
else if (
id ==
IffId(
"ENAB")) {
76 }
else if (
id ==
IffId(
"OPAC")) {
79 }
else if (
id ==
IffId(
"AXIS")) {
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.
Indicates which channel the texture in this LwoSurfaceBlock is applied to.
Indicates whether this particular layer or shader should be rendered or not.
Indicates how transparent or opaque this particular layer is in relation to the layers beneath it.
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.