My Project
SlopeModelProvider.h
1 #pragma once
2 #include "BlockModelProvider.h"
3 namespace ParaEngine
4 {
7  {
8  protected:
9  BlockModel mEdgeBlockModels[8];
10  BlockModel mOuterCornerBlockModels[8];
11  BlockModel mInnerCornerBlockModels[8];
12  public:
13  CSlopeModelProvider(BlockTemplate* pBlockTemplate);
14  virtual ~CSlopeModelProvider();
15  virtual BlockModel& GetBlockModel(int nIndex = 0);
16  virtual BlockModel& GetBlockModel(CBlockWorld* pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData = 0, Block** neighborBlocks = NULL);
17  protected:
18  void _buildEdgeBlockModels();
19  void _builOuterCornerBlockModels();
20  void _buildInnerCornerBlockModels();
21  };
22 }
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: BlockChunk.h:14
Definition: BlockModel.h:172
virtual BlockModel & GetBlockModel(int nIndex=0)
get the default block model.
Definition: SlopeModelProvider.cpp:20
base class for an instance of block world
Definition: BlockWorld.h:35
just return model linearly.
Definition: BlockModelProvider.h:48
block template base class.
Definition: BlockTemplate.h:15
Definition: SlopeModelProvider.h:5