22 #ifndef WATCHMAKER_MATERIAL_H 23 #define WATCHMAKER_MATERIAL_H 25 #include "common/array.h" 26 #include "common/ptr.h" 27 #include "watchmaker/3d/texture.h" 28 #include "watchmaker/3d/movie.h" 29 #include "watchmaker/3d/vertex.h" 42 unsigned int Flags = 0;
44 return FacesList.
size();
46 void addFace(uint16 face) {
49 uint16 getFace(
int index)
const {
50 return FacesList[index];
52 void clearFaceList() {
55 void emptyFacesList() {
65 int NumAllocatedVerts() {
66 return this->VertsList.
size();
70 int NumAllocatedMesh = 0;
72 unsigned char r, g, b;
73 int NumAddictionalMaterial = 0;
74 MaterialTable AddictionalMaterial;
79 void addColor(
unsigned char r,
unsigned char g,
unsigned char b);
80 void addProperty(
int flag);
81 bool hasFlag(
int flag);
82 void clearFlag(
int flag);
83 bool addNumFaces(
unsigned int num);
84 bool addNumFacesAdditionalMaterial(MaterialPtr am,
unsigned int num);
88 MaterialPtr rAddMaterial(MaterialTable &MList,
const Common::String &TextName,
int NumFaces,
unsigned int LoaderFlags);
89 MaterialPtr rAddMaterial(
gMaterial &Material,
const Common::String &TextName,
int NumFaces,
unsigned int LoaderFlags);
90 void rRemoveMaterial(MaterialPtr &m);
91 void rRemoveMaterials(MaterialTable &m);
92 void rCopyMaterialList(MaterialTable &dst, MaterialTable &src, uint count);
93 MaterialPtr rMergeMaterial(MaterialPtr Mat1, MaterialPtr Mat2);
94 void rAddToMaterialList(
gMaterial &mat,
signed short int ViewMatrixNum);
99 #endif // WATCHMAKER_MATERIAL_H Definition: 2d_stuff.h:30
void clear()
Definition: array.h:320
void push_back(const T &element)
Definition: array.h:180
size_type size() const
Definition: array.h:315
void resize(size_type newSize)
Definition: array.h:411
Definition: material.h:39
Definition: dds_header.h:50