libHSPlasma
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
plGeometrySpan Class Reference

#include <plGeometrySpan.h>

Classes

struct  TempVertex

Public Types

enum  { kMaxNumUVChannels = 8 }
enum  Formats {
  kUVCountMask = 0xF, kSkinNoWeights = 0x0, kSkin1Weight = 0x10, kSkin2Weights = 0x20,
  kSkin3Weights = 0x30, kSkinWeightMask = 0x30, kSkinIndices = 0x40
}
enum  Properties {
  kLiteMaterial = 0x0, kPropRunTimeLight = 0x1, kPropNoPreShade = 0x2, kLiteVtxPreshaded = 0x4,
  kLiteVtxNonPreshaded = 0x8, kLiteMask = 0xC, kRequiresBlending = 0x10, kInstanced = 0x20,
  kUserOwned = 0x40, kPropNoShadow = 0x80, kPropForceShadow = 0x100, kDiffuseFoldedIn = 0x200,
  kPropReverseSort = 0x400, kWaterHeight = 0x800, kFirstInstance = 0x1000, kPartialSort = 0x2000,
  kVisLOS = 0x4000, kPropNoShadowCast = 0x8000
}
enum  { kNoGroupID = 0 }

Public Member Functions

void read (hsStream *S)
void write (hsStream *S)
void prcWrite (pfPrcHelper *prc)
void prcParse (const pfPrcTag *tag)
std::vector< TempVertexgetVertices () const
void setVertices (const std::vector< TempVertex > &verts)
std::vector< unsigned short > getIndices () const
void setIndices (const std::vector< unsigned short > &indices)
hsMatrix44 getLocalToWorld () const
hsMatrix44 getWorldToLocal () const
hsBounds3Ext getLocalBounds () const
hsBounds3Ext getWorldBounds () const
plKey getMaterial () const
plKey getFogEnvironment () const
float getMinDist () const
float getMaxDist () const
float getWaterHeight () const
unsigned int getFormat () const
unsigned int getNumMatrices () const
unsigned int getProps () const
unsigned int getBaseMatrix () const
unsigned int getLocalUVWChans () const
unsigned int getMaxBoneIdx () const
unsigned int getPenBoneIdx () const
void setLocalToWorld (hsMatrix44 l2w)
void setWorldToLocal (hsMatrix44 w2l)
void setLocalBounds (hsBounds3Ext bounds)
void setWorldBounds (hsBounds3Ext bounds)
void setMaterial (plKey mat)
void setFogEnvironment (plKey fog)
void setMinDist (float dist)
void setMaxDist (float dist)
void setWaterHeight (float height)
void setFormat (unsigned int format)
void setNumMatrices (unsigned int num)
void setProps (unsigned int props)
void setBaseMatrix (unsigned int base)
void setLocalUVWChans (unsigned int chans)
void setMaxBoneIdx (unsigned int idx)
void setPenBoneIdx (unsigned int idx)

Static Public Member Functions

static unsigned int CalcVertexSize (unsigned char format)

Protected Attributes

plKey fMaterial
plKey fFogEnviron
hsMatrix44 fLocalToWorld
hsMatrix44 fWorldToLocal
hsBounds3Ext fLocalBounds
hsBounds3Ext fWorldBounds
unsigned int fFormat
unsigned int fNumMatrices
unsigned int fBaseMatrix
unsigned short fLocalUVWChans
unsigned short fMaxBoneIdx
unsigned int fPenBoneIdx
float fMinDist
float fMaxDist
float fWaterHeight
unsigned int fProps
unsigned int fNumVerts
unsigned int fNumIndices
std::vector< unsigned char > fVertexData
std::vector< unsigned short > fIndexData
unsigned int fDecalLevel
std::vector< hsColorRGBAfMultColor
std::vector< hsColorRGBAfAddColor
std::vector< unsigned int > fDiffuseRGBA
std::vector< unsigned int > fSpecularRGBA
unsigned int fInstanceGroup
hsMatrix44 fLocalToOBB
hsMatrix44 fOBBToLocal
unsigned int numInstanceRefs

Member Enumeration Documentation

anonymous enum
Enumerator:
kMaxNumUVChannels 
anonymous enum
Enumerator:
kNoGroupID 
Enumerator:
kUVCountMask 
kSkinNoWeights 
kSkin1Weight 
kSkin2Weights 
kSkin3Weights 
kSkinWeightMask 
kSkinIndices 
Enumerator:
kLiteMaterial 
kPropRunTimeLight 
kPropNoPreShade 
kLiteVtxPreshaded 
kLiteVtxNonPreshaded 
kLiteMask 
kRequiresBlending 
kInstanced 
kUserOwned 
kPropNoShadow 
kPropForceShadow 
kDiffuseFoldedIn 
kPropReverseSort 
kWaterHeight 
kFirstInstance 
kPartialSort 
kVisLOS 
kPropNoShadowCast 

Member Function Documentation

static unsigned int plGeometrySpan::CalcVertexSize ( unsigned char  format)
static
unsigned int plGeometrySpan::getBaseMatrix ( ) const
plKey plGeometrySpan::getFogEnvironment ( ) const
unsigned int plGeometrySpan::getFormat ( ) const
std::vector<unsigned short> plGeometrySpan::getIndices ( ) const
hsBounds3Ext plGeometrySpan::getLocalBounds ( ) const
hsMatrix44 plGeometrySpan::getLocalToWorld ( ) const
unsigned int plGeometrySpan::getLocalUVWChans ( ) const
plKey plGeometrySpan::getMaterial ( ) const
unsigned int plGeometrySpan::getMaxBoneIdx ( ) const
float plGeometrySpan::getMaxDist ( ) const
float plGeometrySpan::getMinDist ( ) const
unsigned int plGeometrySpan::getNumMatrices ( ) const
unsigned int plGeometrySpan::getPenBoneIdx ( ) const
unsigned int plGeometrySpan::getProps ( ) const
std::vector<TempVertex> plGeometrySpan::getVertices ( ) const
float plGeometrySpan::getWaterHeight ( ) const
hsBounds3Ext plGeometrySpan::getWorldBounds ( ) const
hsMatrix44 plGeometrySpan::getWorldToLocal ( ) const
void plGeometrySpan::prcParse ( const pfPrcTag tag)
void plGeometrySpan::prcWrite ( pfPrcHelper prc)
void plGeometrySpan::read ( hsStream S)
void plGeometrySpan::setBaseMatrix ( unsigned int  base)
void plGeometrySpan::setFogEnvironment ( plKey  fog)
void plGeometrySpan::setFormat ( unsigned int  format)
void plGeometrySpan::setIndices ( const std::vector< unsigned short > &  indices)
void plGeometrySpan::setLocalBounds ( hsBounds3Ext  bounds)
void plGeometrySpan::setLocalToWorld ( hsMatrix44  l2w)
void plGeometrySpan::setLocalUVWChans ( unsigned int  chans)
void plGeometrySpan::setMaterial ( plKey  mat)
void plGeometrySpan::setMaxBoneIdx ( unsigned int  idx)
void plGeometrySpan::setMaxDist ( float  dist)
void plGeometrySpan::setMinDist ( float  dist)
void plGeometrySpan::setNumMatrices ( unsigned int  num)
void plGeometrySpan::setPenBoneIdx ( unsigned int  idx)
void plGeometrySpan::setProps ( unsigned int  props)
void plGeometrySpan::setVertices ( const std::vector< TempVertex > &  verts)
void plGeometrySpan::setWaterHeight ( float  height)
void plGeometrySpan::setWorldBounds ( hsBounds3Ext  bounds)
void plGeometrySpan::setWorldToLocal ( hsMatrix44  w2l)
void plGeometrySpan::write ( hsStream S)

Member Data Documentation

std::vector<hsColorRGBA> plGeometrySpan::fAddColor
protected
unsigned int plGeometrySpan::fBaseMatrix
protected
unsigned int plGeometrySpan::fDecalLevel
protected
std::vector<unsigned int> plGeometrySpan::fDiffuseRGBA
protected
plKey plGeometrySpan::fFogEnviron
protected
unsigned int plGeometrySpan::fFormat
protected
std::vector<unsigned short> plGeometrySpan::fIndexData
protected
unsigned int plGeometrySpan::fInstanceGroup
protected
hsBounds3Ext plGeometrySpan::fLocalBounds
protected
hsMatrix44 plGeometrySpan::fLocalToOBB
protected
hsMatrix44 plGeometrySpan::fLocalToWorld
protected
unsigned short plGeometrySpan::fLocalUVWChans
protected
plKey plGeometrySpan::fMaterial
protected
unsigned short plGeometrySpan::fMaxBoneIdx
protected
float plGeometrySpan::fMaxDist
protected
float plGeometrySpan::fMinDist
protected
std::vector<hsColorRGBA> plGeometrySpan::fMultColor
protected
unsigned int plGeometrySpan::fNumIndices
protected
unsigned int plGeometrySpan::fNumMatrices
protected
unsigned int plGeometrySpan::fNumVerts
protected
hsMatrix44 plGeometrySpan::fOBBToLocal
protected
unsigned int plGeometrySpan::fPenBoneIdx
protected
unsigned int plGeometrySpan::fProps
protected
std::vector<unsigned int> plGeometrySpan::fSpecularRGBA
protected
std::vector<unsigned char> plGeometrySpan::fVertexData
protected
float plGeometrySpan::fWaterHeight
protected
hsBounds3Ext plGeometrySpan::fWorldBounds
protected
hsMatrix44 plGeometrySpan::fWorldToLocal
protected
unsigned int plGeometrySpan::numInstanceRefs
protected

The documentation for this class was generated from the following file: