Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

BKE_displist.h File Reference

display list (or rather multi purpose list) stuff. More...

#include "DNA_customdata_types.h"
#include "BKE_customdata.h"

Go to the source code of this file.

Classes

struct  DispList

Defines

#define DL_POLY   0
#define DL_SEGM   1
#define DL_SURF   2
#define DL_INDEX3   4
#define DL_INDEX4   5
#define DL_VERTCOL   6
#define DL_VERTS   7
#define DL_CYCL_U   1
#define DL_CYCL_V   2
#define DL_FRONT_CURVE   4
#define DL_BACK_CURVE   8

Typedefs

typedef struct DispList DispList

Functions

void copy_displist (struct ListBase *lbn, struct ListBase *lb)
void free_disp_elem (DispList *dl)
DispListfind_displist_create (struct ListBase *lb, int type)
DispListfind_displist (struct ListBase *lb, int type)
void addnormalsDispList (struct ListBase *lb)
void count_displist (struct ListBase *lb, int *totvert, int *totface)
void freedisplist (struct ListBase *lb)
int displist_has_faces (struct ListBase *lb)
void makeDispListSurf (struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct DerivedMesh **derivedFinal, int forRender, int forOrco)
void makeDispListCurveTypes (struct Scene *scene, struct Object *ob, int forOrco)
void makeDispListCurveTypes_forRender (struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct DerivedMesh **derivedFinal, int forOrco)
void makeDispListCurveTypes_forOrco (struct Scene *scene, struct Object *ob, struct ListBase *dispbase)
void makeDispListMBall (struct Scene *scene, struct Object *ob)
void makeDispListMBall_forRender (struct Scene *scene, struct Object *ob, struct ListBase *dispbase)
int surfindex_displist (DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4)
void filldisplist (struct ListBase *dispbase, struct ListBase *to, int flipnormal)
float calc_taper (struct Scene *scene, struct Object *taperobj, int cur, int tot)
float * makeOrcoDispList (struct Scene *scene, struct Object *ob, struct DerivedMesh *derivedFinal, int forRender)

Detailed Description

display list (or rather multi purpose list) stuff.

Definition in file BKE_displist.h.


Define Documentation

#define DL_BACK_CURVE   8

Definition at line 53 of file BKE_displist.h.

Referenced by bevels_to_filledpoly(), do_makeDispListCurveTypes(), and makebevelcurve().

#define DL_CYCL_U   1
#define DL_CYCL_V   2
#define DL_FRONT_CURVE   4

Definition at line 52 of file BKE_displist.h.

Referenced by bevels_to_filledpoly(), do_makeDispListCurveTypes(), and makebevelcurve().

#define DL_INDEX3   4
#define DL_INDEX4   5
#define DL_POLY   0
#define DL_SEGM   1
#define DL_SURF   2
#define DL_VERTCOL   6

Definition at line 46 of file BKE_displist.h.

#define DL_VERTS   7

Typedef Documentation

typedef struct DispList DispList

Function Documentation

void addnormalsDispList ( struct ListBase lb)
float calc_taper ( struct Scene scene,
struct Object taperobj,
int  cur,
int  tot 
)
void copy_displist ( struct ListBase lbn,
struct ListBase lb 
)
void count_displist ( struct ListBase lb,
int *  totvert,
int *  totface 
)
int displist_has_faces ( struct ListBase lb)

Definition at line 125 of file displist.c.

References DL_INDEX3, DL_INDEX4, DL_SURF, ELEM3, ListBase::first, DispList::next, and DispList::type.

Referenced by drawDispList(), and drawObjectSelect().

void filldisplist ( struct ListBase dispbase,
struct ListBase to,
int  flipnormal 
)
DispList* find_displist ( struct ListBase lb,
int  type 
)
DispList* find_displist_create ( struct ListBase lb,
int  type 
)

Definition at line 95 of file displist.c.

References BLI_addtail(), ListBase::first, MEM_callocN(), DispList::next, and DispList::type.

void free_disp_elem ( DispList dl)
void freedisplist ( struct ListBase lb)
void makeDispListCurveTypes ( struct Scene scene,
struct Object ob,
int  forOrco 
)
void makeDispListCurveTypes_forOrco ( struct Scene scene,
struct Object ob,
struct ListBase dispbase 
)

Definition at line 1399 of file displist.c.

References do_makeDispListCurveTypes(), and NULL.

Referenced by create_orco_dm(), and make_orco_curve().

void makeDispListCurveTypes_forRender ( struct Scene scene,
struct Object ob,
struct ListBase dispbase,
struct DerivedMesh **  derivedFinal,
int  forOrco 
)

Definition at line 1393 of file displist.c.

References do_makeDispListCurveTypes().

Referenced by init_render_curve(), and makebevelcurve().

void makeDispListMBall ( struct Scene scene,
struct Object ob 
)
void makeDispListMBall_forRender ( struct Scene scene,
struct Object ob,
struct ListBase dispbase 
)

Definition at line 682 of file displist.c.

References metaball_polygonize(), object_deform_mball(), and tex_space_mball().

Referenced by init_render_mball().

void makeDispListSurf ( struct Scene scene,
struct Object ob,
struct ListBase dispbase,
struct DerivedMesh **  derivedFinal,
int  forRender,
int  forOrco 
)
float* makeOrcoDispList ( struct Scene scene,
struct Object ob,
struct DerivedMesh derivedFinal,
int  forRender 
)
int surfindex_displist ( DispList dl,
int  a,
int *  b,
int *  p1,
int *  p2,
int *  p3,
int *  p4 
)