Panda3D
|
A texture layer or shader, part of a LwoSurface chunk. More...
#include "lwoSurfaceBlock.h"
Public Member Functions | |
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 context given by this chunk itself. | |
PT (LwoSurfaceBlockHeader) _header | |
virtual bool | read_iff (IffInputFile *in, size_t stop_at) |
Reads the data of the chunk in from the given input file, if possible. | |
virtual void | write (ostream &out, int indent_level=0) const |
A texture layer or shader, part of a LwoSurface chunk.
Definition at line 28 of file lwoSurfaceBlock.h.
IffChunk * LwoSurfaceBlock::make_new_chunk | ( | IffInputFile * | in, |
IffId | id | ||
) | [virtual] |
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the context given by this chunk itself.
Reimplemented from IffChunk.
Definition at line 82 of file lwoSurfaceBlock.cxx.
bool LwoSurfaceBlock::read_iff | ( | IffInputFile * | in, |
size_t | stop_at | ||
) | [virtual] |
Reads the data of the chunk in from the given input file, if possible.
The ID and length of the chunk have already been read. stop_at is the byte position of the file to stop at (based on the current position at in->get_bytes_read()). Returns true on success, false otherwise.
Implements IffChunk.
Definition at line 42 of file lwoSurfaceBlock.cxx.
References LwoGroupChunk::read_subchunks_iff().