22 #ifndef WATCHMAKER_T3D_FACE_H 23 #define WATCHMAKER_T3D_FACE_H 25 #include "watchmaker/3d/types3d.h" 26 #include "watchmaker/3d/material.h" 35 int16 MatVertexIndex[3] = {};
36 uint16 _materialIndex = 0;
40 int16 VertexIndex[3] = {};
42 void setMatVertexIndex(
int index, int16 value) {
43 MatVertexIndex[index] = value;
45 uint16 getMatVertexIndex(
int index) {
46 return MatVertexIndex[index];
53 bool hasMaterialFlag(uint32 flag) {
54 return getMaterial()->hasFlag(flag);
58 uint16 getMaterialIndex()
const {
59 return _materialIndex;
61 void setMaterialIndex(uint32 index) {
62 _materialIndex = index;
67 void checkVertices() {
68 for (
int i = 0; i < 3; i++) {
69 assert((
int)getMaterial()->VertsList.size() > MatVertexIndex[i]);
73 bool isVisible()
const;
78 #endif // SCUMMVM_T3D_FACE_H Definition: 2d_stuff.h:30
Definition: t3d_face.h:31
Definition: t3d_body.h:32
Definition: material.h:39