My Project
Rectangle.h
1 #pragma once
2 #include "BMaxNode.h"
3 #include "BlockEngine/BlockModel.h"
4 
5 namespace ParaEngine
6 {
7  class Rectangle : public CRefCounted
8  {
9  public:
10  Rectangle(BMaxNodePtr nodes_[4], uint32 faceIndex_);
11  Rectangle(BMaxNode* node, uint32 faceIndex_);
12  ~Rectangle();
14  void SetCornerNode(BMaxNode* node, uint32 index);
15  void UpdateNode(BMaxNode* fromNode, BMaxNode* toNode, uint32 index);
16  void CloneNodes();
17  void ScaleVertices(float scale);
18  int GetBoneIndexAt(int index);
19 
20  BlockVertexCompressed *GetVertices();
21 
22  BMaxNode* GetFromNode(uint32 nIndex);
23 
24  BMaxNode* GetToNode(uint32 nIndex);
25 
26  public:
27  static const Vector3 DirectionOffsetTable[24];
28 
29  private:
31  uint32 m_faceIndex;
33  BMaxNodePtr m_nodes[4];
35  BlockVertexCompressed m_rectangleVertices[4];
36  };
37 
39 }
40 
41 
Definition: Rectangle.h:7
void SetCornerNode(BMaxNode *node, uint32 index)
set corner node
Definition: Rectangle.cpp:63
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: BlockModel.h:12
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
base class for a block in bmax model
Definition: BMaxNode.h:14
Definition: PERef.h:11