Panda3D
Public Member Functions

LwoSurfaceBlock Class Reference

A texture layer or shader, part of a LwoSurface chunk. More...

#include "lwoSurfaceBlock.h"

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

List of all members.

Public Member Functions

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.
 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

Detailed Description

A texture layer or shader, part of a LwoSurface chunk.

Definition at line 28 of file lwoSurfaceBlock.h.


Member Function Documentation

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().


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