My Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParaEngine::CSlopeModelProvider Class Reference
Inheritance diagram for ParaEngine::CSlopeModelProvider:
ParaEngine::CLinearModelProvider ParaEngine::IBlockModelProvider

Public Member Functions

 CSlopeModelProvider (BlockTemplate *pBlockTemplate)
 
virtual BlockModelGetBlockModel (int nIndex=0)
 get the default block model. More...
 
virtual BlockModelGetBlockModel (CBlockWorld *pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData=0, Block **neighborBlocks=NULL)
 
- Public Member Functions inherited from ParaEngine::CLinearModelProvider
 CLinearModelProvider (BlockTemplate *pBlockTemplate, int nCount=0)
 
virtual BlockModelGetBlockModelByData (uint32 nData)
 
virtual int GetModelIndex (CBlockWorld *pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData=0, Block **neighborBlocks=NULL)
 get block model index
 
int GetModelCount () const
 
- Public Member Functions inherited from ParaEngine::IBlockModelProvider
 IBlockModelProvider (BlockTemplate *pBlockTemplate)
 

Protected Member Functions

void _buildEdgeBlockModels ()
 
void _builOuterCornerBlockModels ()
 
void _buildInnerCornerBlockModels ()
 

Protected Attributes

BlockModel mEdgeBlockModels [8]
 
BlockModel mOuterCornerBlockModels [8]
 
BlockModel mInnerCornerBlockModels [8]
 
- Protected Attributes inherited from ParaEngine::CLinearModelProvider
int m_nModelCount
 
- Protected Attributes inherited from ParaEngine::IBlockModelProvider
BlockTemplatem_pBlockTemplate
 

Member Function Documentation

§ GetBlockModel()

BlockModel & ParaEngine::CSlopeModelProvider::GetBlockModel ( int  nIndex = 0)
virtual

get the default block model.

This function must be implemented if one provide its own model

Parameters
nIndexmodel index default to 0

Reimplemented from ParaEngine::IBlockModelProvider.


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