Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes

LwoSurface Class Reference

Describes the shading attributes of a surface. More...

#include "lwoSurface.h"

Inheritance diagram for LwoSurface:
LwoGroupChunk LwoChunk IffChunk TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
virtual IffChunkmake_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.
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

string _name
string _source

Detailed Description

Describes the shading attributes of a surface.

This is similar to the concept usually called a "material" or "shader" in other file formats.

Definition at line 28 of file lwoSurface.h.


Member Function Documentation

static void LwoSurface::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 LwoGroupChunk.

Definition at line 47 of file lwoSurface.h.

IffChunk * LwoSurface::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 69 of file lwoSurface.cxx.

bool LwoSurface::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 38 of file lwoSurface.cxx.

References IffInputFile::get_string(), and LwoGroupChunk::read_subchunks_iff().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations