From c57d5bca73ce274f41febace72388e9e198d4d35 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 20 Nov 2006 21:25:02 +0000 Subject: 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. --- source/blender/blenkernel/BKE_displist.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'source/blender/blenkernel/BKE_displist.h') 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; -- cgit v1.2.3