~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/BKE_displist.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
 *
3
2
 * ***** BEGIN GPL LICENSE BLOCK *****
4
3
 *
5
4
 * This program is free software; you can redistribute it and/or
24
23
 * Contributor(s): none yet.
25
24
 *
26
25
 * ***** END GPL LICENSE BLOCK *****
27
 
 
28
 
*/
 
26
 */
29
27
 
30
28
#ifndef __BKE_DISPLIST_H__
31
29
#define __BKE_DISPLIST_H__
44
42
#define DL_INDEX3               4
45
43
#define DL_INDEX4               5
46
44
#define DL_VERTCOL              6
47
 
#define DL_VERTS                                7
 
45
#define DL_VERTS                7
48
46
 
49
47
/* dl->flag */
50
 
#define DL_CYCL_U               1
51
 
#define DL_CYCL_V               2
52
 
#define DL_FRONT_CURVE  4
53
 
#define DL_BACK_CURVE   8
 
48
#define DL_CYCL_U       1
 
49
#define DL_CYCL_V       2
 
50
#define DL_FRONT_CURVE  4
 
51
#define DL_BACK_CURVE   8
54
52
 
55
53
 
56
54
/* prototypes */
75
73
        int *index;
76
74
        unsigned int *col1, *col2;
77
75
        int charidx;
78
 
        int totindex;                           /* indexed array drawing surfaces */
 
76
        int totindex;               /* indexed array drawing surfaces */
79
77
 
80
78
        unsigned int *bevelSplitFlag;
81
79
} DispList;
82
80
 
83
 
extern void copy_displist(struct ListBase *lbn, struct ListBase *lb);
84
 
extern void free_disp_elem(DispList *dl);
85
 
extern DispList *find_displist_create(struct ListBase *lb, int type);
86
 
extern DispList *find_displist(struct ListBase *lb, int type);
87
 
extern void addnormalsDispList(struct ListBase *lb);
88
 
extern void count_displist(struct ListBase *lb, int *totvert, int *totface);
89
 
extern void freedisplist(struct ListBase *lb);
90
 
extern int displist_has_faces(struct ListBase *lb);
91
 
 
92
 
extern void makeDispListSurf(struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct DerivedMesh **derivedFinal, int forRender, int forOrco);
93
 
extern void makeDispListCurveTypes(struct Scene *scene, struct Object *ob, int forOrco);
94
 
extern void makeDispListCurveTypes_forRender(struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct DerivedMesh **derivedFinal, int forOrco);
95
 
extern void makeDispListCurveTypes_forOrco(struct Scene *scene, struct Object *ob, struct ListBase *dispbase);
96
 
extern void makeDispListMBall(struct Scene *scene, struct Object *ob);
97
 
extern void makeDispListMBall_forRender(struct Scene *scene, struct Object *ob, struct ListBase *dispbase);
98
 
 
99
 
int surfindex_displist(DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4);
100
 
void filldisplist(struct ListBase *dispbase, struct ListBase *to, int flipnormal);
101
 
 
102
 
float calc_taper(struct Scene *scene, struct Object *taperobj, int cur, int tot);
 
81
void BKE_displist_copy(struct ListBase *lbn, struct ListBase *lb);
 
82
void BKE_displist_elem_free(DispList *dl);
 
83
DispList *BKE_displist_find_or_create(struct ListBase *lb, int type);
 
84
DispList *BKE_displist_find(struct ListBase *lb, int type);
 
85
void BKE_displist_normals_add(struct ListBase *lb);
 
86
void BKE_displist_count(struct ListBase *lb, int *totvert, int *totface, int *tottri);
 
87
void BKE_displist_free(struct ListBase *lb);
 
88
int BKE_displist_has_faces(struct ListBase *lb);
 
89
 
 
90
void BKE_displist_make_surf(struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct DerivedMesh **derivedFinal, int forRender, int forOrco);
 
91
void BKE_displist_make_curveTypes(struct Scene *scene, struct Object *ob, int forOrco);
 
92
void BKE_displist_make_curveTypes_forRender(struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct DerivedMesh **derivedFinal, int forOrco);
 
93
void BKE_displist_make_curveTypes_forOrco(struct Scene *scene, struct Object *ob, struct ListBase *dispbase);
 
94
void BKE_displist_make_mball(struct Scene *scene, struct Object *ob);
 
95
void BKE_displist_make_mball_forRender(struct Scene *scene, struct Object *ob, struct ListBase *dispbase);
 
96
 
 
97
int BKE_displist_surfindex_get(DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4);
 
98
void BKE_displist_fill(struct ListBase *dispbase, struct ListBase *to, int flipnormal);
 
99
 
 
100
float BKE_displist_calc_taper(struct Scene *scene, struct Object *taperobj, int cur, int tot);
103
101
 
104
102
/* add Orco layer to the displist object which has got derived mesh and return orco */
105
 
float *makeOrcoDispList(struct Scene *scene, struct Object *ob, struct DerivedMesh *derivedFinal, int forRender);
 
103
float *BKE_displist_make_orco(struct Scene *scene, struct Object *ob, struct DerivedMesh *derivedFinal, int forRender);
106
104
 
107
105
#endif
108