~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/intern/CCGSubSurf.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-04-28 12:11:12 UTC
  • mto: (14.1.6 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20120428121112-2zi0vp8b6vejda8i
Tags: upstream-2.63
ImportĀ upstreamĀ versionĀ 2.63

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
typedef void* CCGEdgeHDL;
9
9
typedef void* CCGFaceHDL;
10
10
 
11
 
typedef struct _CCGVert CCGVert;
12
 
typedef struct _CCGEdge CCGEdge;
13
 
typedef struct _CCGFace CCGFace;
 
11
typedef struct CCGSubSurf CCGSubSurf;
 
12
typedef struct CCGVert CCGVert;
 
13
typedef struct CCGEdge CCGEdge;
 
14
typedef struct CCGFace CCGFace;
14
15
 
15
 
typedef struct _CCGMeshIFC CCGMeshIFC;
16
 
struct _CCGMeshIFC {
 
16
typedef struct CCGMeshIFC {
17
17
        int                     vertUserSize, edgeUserSize, faceUserSize;
18
18
 
19
19
        int                     vertDataSize;
20
 
};
 
20
} CCGMeshIFC;
21
21
 
22
22
/***/
23
23
 
24
24
typedef void* CCGAllocatorHDL;
25
25
 
26
 
typedef struct _CCGAllocatorIFC CCGAllocatorIFC;
27
 
struct _CCGAllocatorIFC {
 
26
typedef struct CCGAllocatorIFC {
28
27
        void*           (*alloc)                        (CCGAllocatorHDL a, int numBytes);
29
28
        void*           (*realloc)                      (CCGAllocatorHDL a, void *ptr, int newSize, int oldSize);
30
29
        void            (*free)                         (CCGAllocatorHDL a, void *ptr);
31
30
        void            (*release)                      (CCGAllocatorHDL a);
32
 
};
 
31
} CCGAllocatorIFC;
33
32
 
34
33
/***/
35
34
 
46
45
 
47
46
/***/
48
47
 
49
 
typedef struct _CCGSubSurf CCGSubSurf;
50
 
 
51
48
CCGSubSurf*     ccgSubSurf_new  (CCGMeshIFC *ifc, int subdivisionLevels, CCGAllocatorIFC *allocatorIFC, CCGAllocatorHDL allocator);
52
49
void            ccgSubSurf_free (CCGSubSurf *ss);
53
50
 
54
 
CCGError        ccgSubSurf_sync (CCGSubSurf *ss);
55
 
 
56
51
CCGError        ccgSubSurf_initFullSync         (CCGSubSurf *ss);
57
52
CCGError        ccgSubSurf_initPartialSync      (CCGSubSurf *ss);
58
53
 
121
116
void*           ccgSubSurf_getEdgeLevelData                     (CCGSubSurf *ss, CCGEdge *e, int x, int level);
122
117
 
123
118
CCGFace*        ccgSubSurf_getFace                                      (CCGSubSurf *ss, CCGFaceHDL f);
124
 
CCGFaceHDL      ccgSubSurf_getFaceFaceHandle            (CCGSubSurf *ss, CCGFace *f);
 
119
CCGFaceHDL      ccgSubSurf_getFaceFaceHandle            (CCGFace *f);
125
120
int                     ccgSubSurf_getFaceNumVerts                      (CCGFace *f);
126
 
CCGVert*        ccgSubSurf_getFaceVert                          (CCGSubSurf *ss, CCGFace *f, int index);
127
 
CCGEdge*        ccgSubSurf_getFaceEdge                          (CCGSubSurf *ss, CCGFace *f, int index);
 
121
CCGVert*        ccgSubSurf_getFaceVert                          (CCGFace *f, int index);
 
122
CCGEdge*        ccgSubSurf_getFaceEdge                          (CCGFace *f, int index);
128
123
int                     ccgSubSurf_getFaceEdgeIndex                     (CCGFace *f, CCGEdge *e);
129
124
 
130
125
int                     ccgSubSurf_getFaceAge                           (CCGSubSurf *ss, CCGFace *f);
141
136
 
142
137
/***/
143
138
 
144
 
typedef struct _CCGVertIterator CCGVertIterator;
145
 
typedef struct _CCGEdgeIterator CCGEdgeIterator;
146
 
typedef struct _CCGFaceIterator CCGFaceIterator;
 
139
typedef struct CCGVertIterator CCGVertIterator;
 
140
typedef struct CCGEdgeIterator CCGEdgeIterator;
 
141
typedef struct CCGFaceIterator CCGFaceIterator;
147
142
 
148
143
CCGVertIterator*        ccgSubSurf_getVertIterator      (CCGSubSurf *ss);
149
144
CCGEdgeIterator*        ccgSubSurf_getEdgeIterator      (CCGSubSurf *ss);