Cycles: working towards texture workflow design
[blender.git] / source / blender / blenkernel / BKE_DerivedMesh.h
index 55ade5fe5d987b9cb6e6207e8e19719a24d7361c..45c4b9498092cd7d7a2d34471fd814769ad15683 100644 (file)
@@ -325,6 +325,14 @@ struct DerivedMesh {
                                                                                                                           float t),
                                                                  void *userData);
 
+       /* Draw all faces with materials
+        *  o setMaterial is called for every different material nr
+        *  o setFace is called to verify if a face must be hidden
+        */
+       void (*drawMappedFacesMat)(DerivedMesh *dm,
+               void (*setMaterial)(void *userData, int, void *attribs),
+               int (*setFace)(void *userData, int index), void *userData);
+
        /* Release reference to the DerivedMesh. This function decides internally
         * if the DerivedMesh will be freed, or cached for later use. */
        void (*release)(DerivedMesh *dm);
@@ -526,7 +534,7 @@ void weight_to_rgb(float input, float *fr, float *fg, float *fb);
 typedef struct DMVertexAttribs {
        struct {
                struct MTFace *array;
-               int emOffset, glIndex;
+               int emOffset, glIndex, glTexco;
        } tface[MAX_MTFACE];
 
        struct {
@@ -541,7 +549,7 @@ typedef struct DMVertexAttribs {
 
        struct {
                float (*array)[3];
-               int emOffset, glIndex;
+               int emOffset, glIndex, glTexco;
        } orco;
 
        int tottface, totmcol, tottang, totorco;