fix for own bugs in curves.
[blender.git] / source / blender / blenkernel / BKE_displist.h
index d6b438a3010dc25f9cd59ace7192dc3379aa6b9f..a534dcc3669a15b15fc5462cfdd618727c804df1 100644 (file)
 #define DL_FRONT_CURVE 4
 #define DL_BACK_CURVE  8
 
-#define DL_SURFINDEX(cyclu, cyclv, sizeu, sizev)           \
-\
-if( (cyclv)==0 && a==(sizev)-1) break;             \
-if(cyclu) {                                                \
-       p1= sizeu*a;                                        \
-               p2= p1+ sizeu-1;                                    \
-                       p3= p1+ sizeu;                                      \
-                               p4= p2+ sizeu;                                      \
-                                       b= 0;                                               \
-}                                                          \
-else {                                             \
-       p2= sizeu*a;                                        \
-               p1= p2+1;                                           \
-                       p4= p2+ sizeu;                                      \
-                               p3= p1+ sizeu;                                      \
-                                       b= 1;                                               \
-}                                                          \
-if( (cyclv) && a==sizev-1) {                       \
-       p3-= sizeu*sizev;                                   \
-               p4-= sizeu*sizev;                                   \
-}
-
 
 /* prototypes */
 
@@ -114,6 +92,7 @@ extern void makeDispListMBall(struct Object *ob);
 extern void shadeDispList(struct Base *base);
 extern void shadeMeshMCol(struct Object *ob, struct Mesh *me);
 
+int surfindex_displist(DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4);
 void imagestodisplist(void);
 void reshadeall_displist(void);
 void filldisplist(struct ListBase *dispbase, struct ListBase *to);