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

LwoSurfaceBlockOpacity Class Reference

Indicates how transparent or opaque this particular layer is in relation to the layers beneath it. More...

#include "lwoSurfaceBlockOpacity.h"

Inheritance diagram for LwoSurfaceBlockOpacity:
LwoChunk IffChunk TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Types

enum  Type {
  T_additive = 0, T_subtractive = 1, T_difference = 2, T_multiply = 3,
  T_divide = 4, T_alpha = 5, T_texture_displacement = 6
}

Public Member Functions

virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
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 _envelope
PN_stdfloat _opacity
Type _type

Detailed Description

Indicates how transparent or opaque this particular layer is in relation to the layers beneath it.

This is a subchunk of LwoSurfaceBlockHeader.

Definition at line 28 of file lwoSurfaceBlockOpacity.h.


Member Function Documentation

static void LwoSurfaceBlockOpacity::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 56 of file lwoSurfaceBlockOpacity.h.

bool LwoSurfaceBlockOpacity::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 34 of file lwoSurfaceBlockOpacity.cxx.

References IffInputFile::get_be_float32(), IffInputFile::get_be_uint16(), and LwoInputFile::get_vx().


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