Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-21 00:25:02 +0300
committerTon Roosendaal <ton@blender.org>2006-11-21 00:25:02 +0300
commitc57d5bca73ce274f41febace72388e9e198d4d35 (patch)
treec1372d1a1e49beebbd98af27332824dadc3544bf /source/blender/blenkernel/BKE_displist.h
parent208e69abab9d4a2581e3295f46728ff184fe77b2 (diff)
Step one in migrating to use glArray calls in Blender
- Curve/Nurbs/Font/MBall now all draw arrays. - had to flip abgr to rgba in shaded drawing - Mesh drawing can't be easily done; the indices for faces are not in in one chunk. Also need a way to gether trias/quads, per material. Speedup results are mixed. Something between 2-4 times. Especially for text it seems to help.
Diffstat (limited to 'source/blender/blenkernel/BKE_displist.h')
-rw-r--r--source/blender/blenkernel/BKE_displist.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/source/blender/blenkernel/BKE_displist.h b/source/blender/blenkernel/BKE_displist.h
index 4bcd5d8955c..04f3aadbe3c 100644
--- a/source/blender/blenkernel/BKE_displist.h
+++ b/source/blender/blenkernel/BKE_displist.h
@@ -85,28 +85,18 @@ struct Material;
struct Bone;
struct Mesh;
-/*
- * All the different DispList.type's use the
- * data in the displist structure in fairly
- * different ways which can be rather confusing,
- * the best thing to do would be to make a structure
- * for each displaylist type that has the fields
- * needed w/ proper names, and then make the actual
- * DispList structure a typed union.
- * - zr
- */
-
-/* needs splitting! */
+
+/* used for curves, nurbs, mball, importing */
typedef struct DispList {
struct DispList *next, *prev;
short type, flag;
int parts, nr;
- short col, rt; /* rt wordt gebruikt door initrenderNurbs */
+ short col, rt; /* rt used by initrenderNurbs */
float *verts, *nors;
int *index;
unsigned int *col1, *col2;
int charidx;
- int pad;
+ int totindex; /* indexed array drawing surfaces */
unsigned int *bevelSplitFlag;
} DispList;