My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::BMaxBlockModelNode Struct Reference

block model node in bmax More...

#include <BMaxBlockModelNode.h>

Inheritance diagram for ParaEngine::BMaxBlockModelNode:
ParaEngine::BMaxNode ParaEngine::CRefCounted

Public Member Functions

 BMaxBlockModelNode (BMaxParser *pParser, int16 x_, int16 y_, int16 z_, int32 template_id_, int32 block_data_)
 
const std::string & GetFilename () const
 
void SetFilename (const std::string &val)
 
float GetFacing () const
 
void SetFacing (float val)
 
virtual bool isSolid ()
 
virtual int TessellateBlock (BlockModel *tessellatedModel)
 
- Public Member Functions inherited from ParaEngine::BMaxNode
 BMaxNode (BMaxParser *pParser, int16 x_, int16 y_, int16 z_, int32 template_id_, int32 block_data_)
 
uint64 GetIndex ()
 
virtual DWORD GetColor ()
 
BlockModelGetBlockModel ()
 
void SetBlockModel (BlockModel *pModel)
 set block model weak reference. More...
 
virtual void SetColor (DWORD val)
 
virtual BMaxFrameNodeToBoneNode ()
 get the bone node interface if it is
 
bool HasBoneWeight ()
 if there are any bone associated with this node at the moment. More...
 
virtual int GetBoneIndex ()
 return the index of first bone, return -1 if no bone is binded to this node
 
virtual void SetBoneIndex (int nIndex)
 
BMaxNodeGetNeighbour (BlockDirection::Side nSize)
 get neighbor block by side id More...
 
BMaxNodeGetNeighbourByOffset (Vector3 offset)
 
void QueryNeighborBlockData (BMaxNode **pBlockData, int nFrom, int nTo)
 
uint32 CalculateCubeAO (BMaxNode **neighborBlocks)
 
int32_t GetAvgVertexLight (int32_t v1, int32_t v2, int32_t v3, int32_t v4)
 
void SetFaceVisible (int nIndex)
 
void SetFaceUsed (int nIndex)
 
bool IsFaceNotUse (int nIndex)
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Public Attributes

std::string m_sFilename
 
float m_fFacing
 
- Public Attributes inherited from ParaEngine::BMaxNode
int16 x
 
int16 y
 
int16 z
 
int32 template_id
 
int32 block_data
 
int m_nBoneIndex
 

Additional Inherited Members

- Public Types inherited from ParaEngine::BMaxNode
enum  FaceStatus { faceInvisible = 0, faceVisibleNotSign, faceVisibleSigned }
 
- Protected Attributes inherited from ParaEngine::BMaxNode
BMaxParserm_pParser
 
DWORD m_color
 
BlockModelm_pBlockModel
 
FaceStatus m_facesStatus [6]
 
- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

block model node in bmax

Member Function Documentation

§ TessellateBlock()

int ParaEngine::BMaxBlockModelNode::TessellateBlock ( BlockModel tessellatedModel)
virtual
Parameters
tessellatedModelgenerate block model vertices
Returns
vertices count

Reimplemented from ParaEngine::BMaxNode.


The documentation for this struct was generated from the following files: