15 #include "lwoSurfaceBlockHeader.h"
16 #include "lwoInputFile.h"
17 #include "lwoSurfaceBlockChannel.h"
18 #include "lwoSurfaceBlockEnabled.h"
19 #include "lwoSurfaceBlockOpacity.h"
20 #include "lwoSurfaceBlockAxis.h"
25 TypeHandle LwoSurfaceBlockHeader::_type_handle;
42 read_subchunks_iff(lin, stop_at);
52 void LwoSurfaceBlockHeader::
53 write(ostream &out,
int indent_level)
const {
54 indent(out, indent_level)
56 indent(out, indent_level + 2)
57 <<
"ordinal = 0x" << hex << setfill(
'0');
59 string::const_iterator si;
60 for (si = _ordinal.begin(); si != _ordinal.end(); ++si) {
61 out << setw(2) << (int)(
unsigned char)(*si);
64 out << dec << setfill(
' ') <<
"\n";
66 write_chunks(out, indent_level + 2);
67 indent(out, indent_level)
80 if (
id ==
IffId(
"CHAN")) {
83 }
else if (
id ==
IffId(
"ENAB")) {
86 }
else if (
id ==
IffId(
"OPAC")) {
89 }
else if (
id ==
IffId(
"AXIS")) {
Indicates how transparent or opaque this particular layer is in relation to the layers beneath it...
Indicates which channel the texture in this LwoSurfaceBlock is applied to.
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...
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on...
IffId get_id() const
Returns the ID associated with this chunk.
Indicates the axis for this particular shader's projection.
Indicates whether this particular layer or shader should be rendered or not.
TypeHandle is the identifier used to differentiate C++ class types.
A four-byte chunk ID appearing in an "IFF" file.