|
enum | EdgeVertexFlag {
evf_none = 0,
evf_topFront = 0x001,
evf_topLeft = 0x002,
evf_topRight = 0x004,
evf_topBack = 0x008,
evf_LeftFront = 0x010,
evf_leftBack = 0x020,
evf_rightFont = 0x040,
evf_rightBack = 0x080,
evf_bottomFront = 0x100,
evf_bottomLeft = 0x200,
evf_bottomRight = 0x400,
evf_bottomBack = 0x800,
evf_xyz = 0x01000,
evf_xyNz = 0x02000,
evf_xNyz = 0x04000,
evf_xNyNz = 0x08000,
evf_Nxyz = 0x10000,
evf_NxyNz = 0x20000,
evf_NxNyz = 0x40000,
evf_NxNyNz = 0x80000
} |
|
|
| BlockModel (int32_t texFaceNum=0) |
|
void | CloneRenderData (const BlockModel &from_block) |
| clone the given block model. More...
|
|
void | Clone (const BlockModel &from_block) |
|
void | ClearVertices () |
| clear all vertices
|
|
int | AddVertex (const BlockVertexCompressed &vertex) |
| add a new vertex More...
|
|
int | AddVertex (const BlockModel &from_block, int32 nVertexIndex) |
| add vertex from another block. More...
|
|
void | CloneVertices (const BlockModel &from_block) |
|
std::vector< BlockVertexCompressed > & | Vertices () |
| vertices
|
|
void | SetAOMask (uint32_t edges) |
|
void | SetVerticalScale (EdgeVertexFlag vertexId, float scale) |
|
void | TranslateVertices (float dx, float dy, float dz) |
| offset the vertices
|
|
void | SetLightIntensity (uint32_t vertexId, float value) |
| only used for fixed function pipeline.
|
|
void | SetVertexLight (uint32_t vertexId, uint8_t nBlockLight, uint8_t nSunLight) |
|
void | SetCategoryID (DWORD nCategoryID) |
| set category id. More...
|
|
void | GetBoundingBoxVertices (Vector3 *pVertices, int *pNumber) |
| get bounding box vertices
|
|
bool | IsCubeAABB () |
| whether AABB is a cube
|
|
void | SetIsCubeAABB (bool bIsCube) |
|
void | GetAABB (CShapeAABB *pOut) const |
| get axis aligned bounding box for the model. More...
|
|
const CShapeAABB & | GetAABB () const |
|
void | SetAABB (const Vector3 &vMin, const Vector3 &vMax) |
|
bool | IsUseAmbientOcclusion () |
| whether use ambient occlusion. More...
|
|
void | SetUseAmbientOcclusion (bool bValue) |
|
int | GetFaceCount () |
| get face count. More...
|
|
void | SetFaceCount (int nFaceCount) |
|
int | IncrementFaceCount (int nDelta=1) |
|
int | GetVerticesCount () |
| get number of vertices
|
|
void | ReserveVertices (int nReservedSize=24) |
|
bool | IsDisableFaceCulling () |
| Is disable face culling.
|
|
void | SetDisableFaceCulling (bool bDisabled) |
|
bool | IsUsingSelfLighting () |
| whether to disable block and sun lighting when rendering this block. More...
|
|
void | SetUsingSelfLighting (bool bEnable) |
|
bool | IsUniformLighting () const |
| whether all vertices have same lighting value. More...
|
|
void | SetUniformLighting (bool val) |
|
void | Transform (const Matrix4 &mat) |
| transform each vertex of the model by this mat. More...
|
|
void | Transform (const Vector3 &vOffset, float fScaling) |
| transform by scale and translate
|
|
void | RemoveFace (int nFirstIndex) |
| remove a given face by making infinite small triangle. More...
|
|
BlockVertexCompressed * | GetVertices () |
| get vertice array
|
|
const BlockVertexCompressed * | GetVerticesConst () const |
|
int | GetTextureIndex () const |
| get texture index into the Block template's texture array. More...
|
|
void | SetTextureIndex (int val) |
|
void | SetColor (DWORD color) |
| set the uniform block color. More...
|
|
void | LoadModel (BlockTemplate *pTemplate, const std::string &filename, const Matrix4 &mat, int nTextureIndex=0) |
| load static model from parax file. More...
|
|
void | LoadModelByTexture (int32_t texFaceNum) |
|
void | LoadCubeModel () |
|
void | LoadModel (const std::string &sModelName) |
| load from known model name
|
|
void | SetVertexShadow (int nIndex, unsigned char nShadowLevel) |
| set the vertex in shadow as in ao calculation. More...
|
|
void | SetVertexShadowFromAOFlags (int nIndex, int nCubeIndex, uint32 aoFlags) |
|
void | SetVertexColor (int nIndex, DWORD color) |
|
unsigned char | CalculateCubeVertexAOShadowLevel (int nIndex, uint32 aoFlags) |
|
void | SetVertexHeightScale (int nIndex, float scale) |
|