Panda3D
|
Signals the start of a new layer. More...
#include "lwoLayer.h"
Public Types | |
enum | Flags { F_hidden = 0x0001 } |
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | make_generic () |
Resets the layer's parameters to initial defaults for a generic layer created implicitly. | |
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 |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
int | _flags |
string | _name |
int | _number |
int | _parent |
LPoint3 | _pivot |
Signals the start of a new layer.
All the data chunks which follow will be included in this layer until another layer chunk is encountered. If data is encountered before a layer chunk, it goes into an arbitrary layer.
Definition at line 32 of file lwoLayer.h.
static void LwoLayer::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from LwoChunk.
Definition at line 58 of file lwoLayer.h.
void LwoLayer::make_generic | ( | ) |
Resets the layer's parameters to initial defaults for a generic layer created implicitly.
Definition at line 30 of file lwoLayer.cxx.
bool LwoLayer::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 49 of file lwoLayer.cxx.
References IffInputFile::get_be_uint16(), IffInputFile::get_bytes_read(), IffInputFile::get_string(), and LwoInputFile::get_vec3().