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

drawobject.c File Reference

#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_camera_types.h"
#include "DNA_curve_types.h"
#include "DNA_constraint_types.h"
#include "DNA_dynamicpaint_types.h"
#include "DNA_lamp_types.h"
#include "DNA_lattice_types.h"
#include "DNA_material_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_meta_types.h"
#include "DNA_scene_types.h"
#include "DNA_smoke_types.h"
#include "DNA_speaker_types.h"
#include "DNA_world_types.h"
#include "DNA_armature_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_edgehash.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_anim.h"
#include "BKE_camera.h"
#include "BKE_constraint.h"
#include "BKE_curve.h"
#include "BKE_DerivedMesh.h"
#include "BKE_deform.h"
#include "BKE_displist.h"
#include "BKE_font.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_mesh.h"
#include "BKE_material.h"
#include "BKE_mball.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_scene.h"
#include "BKE_unit.h"
#include "BKE_movieclip.h"
#include "BKE_tracking.h"
#include "smoke_API.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "GPU_draw.h"
#include "GPU_extensions.h"
#include "ED_mesh.h"
#include "ED_particle.h"
#include "ED_screen.h"
#include "ED_sculpt.h"
#include "ED_types.h"
#include "ED_curve.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "wm_subwindow.h"
#include "BLF_api.h"
#include "view3d_intern.h"

Go to the source code of this file.

Classes

struct  foreachScreenVert_userData
struct  foreachScreenEdge_userData
struct  foreachScreenFace_userData
struct  drawDMVerts_userData
struct  drawDMEdgesSel_userData
struct  drawDMFacesSel_userData
struct  bbsObmodeMeshVerts_userData
struct  ViewCachedString

Defines

#define CHECK_OB_DRAWTEXTURE(vd, dt)
#define CIRCLE_RESOL   32
#define TH_HANDLE_COL_TOT   ((TH_HANDLE_SEL_FREE - TH_HANDLE_FREE) + 1)

Typedefs

typedef enum eWireDrawMode eWireDrawMode
typedef struct
foreachScreenVert_userData 
foreachScreenVert_userData
typedef struct
foreachScreenEdge_userData 
foreachScreenEdge_userData
typedef struct
foreachScreenFace_userData 
foreachScreenFace_userData
typedef struct drawDMVerts_userData drawDMVerts_userData
typedef struct
drawDMEdgesSel_userData 
drawDMEdgesSel_userData
typedef struct
drawDMFacesSel_userData 
drawDMFacesSel_userData
typedef struct
bbsObmodeMeshVerts_userData 
bbsObmodeMeshVerts_userData
typedef struct ViewCachedString ViewCachedString

Enumerations

enum  eWireDrawMode { OBDRAW_WIRE_OFF = 0, OBDRAW_WIRE_ON = 1, OBDRAW_WIRE_ON_DEPTH = 2 }

Functions

static void draw_bounding_volume (Scene *scene, Object *ob, char type)
static void drawcube_size (float size)
static void drawcircle_size (float size)
static void draw_empty_sphere (float size)
static void draw_empty_cone (float size)
static int check_ob_drawface_dot (Scene *sce, View3D *vd, char dt)
static void view3d_project_short_clip (ARegion *ar, const float vec[3], short adr[2], int local)
static void view3d_project_short_noclip (ARegion *ar, const float vec[3], short adr[2])
static void view3d_project_short_clip_persmat (ARegion *ar, float *vec, short adr[2], int local)
int draw_glsl_material (Scene *scene, Object *ob, View3D *v3d, int dt)
static int check_alpha_pass (Base *base)
static void draw_xyz_wire (const float c[3], float size, int axis)
void drawaxes (float size, char drawtype)
static void draw_empty_image (Object *ob)
static void circball_array_fill (float verts[CIRCLE_RESOL][3], const float cent[3], float rad, float tmat[][4])
void drawcircball (int mode, const float cent[3], float rad, float tmat[][4])
static void drawcentercircle (View3D *v3d, RegionView3D *rv3d, const float co[3], int selstate, int special_color)
void view3d_cached_text_draw_begin (void)
void view3d_cached_text_draw_add (const float co[3], const char *str, short xoffs, short flag, const unsigned char col[4])
void view3d_cached_text_draw_end (View3D *v3d, ARegion *ar, int depth_write, float mat[][4])
static void drawcube (void)
static void drawshadbuflimits (Lamp *la, float mat[][4])
static void spotvolume (float lvec[3], float vvec[3], const float inp)
static void draw_spot_cone (Lamp *la, float x, float z)
static void draw_transp_spot_volume (Lamp *la, float x, float z)
static void drawlamp (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, int dt, int flag)
static void draw_limit_line (float sta, float end, unsigned int col)
static void draw_focus_cross (float dist, float size)
static void draw_bundle_sphere (void)
static void draw_viewport_object_reconstruction (Scene *scene, Base *base, View3D *v3d, MovieClip *clip, MovieTrackingObject *tracking_object, int flag, int *global_track_index)
static void draw_viewport_reconstruction (Scene *scene, Base *base, View3D *v3d, MovieClip *clip, int flag)
static void drawcamera (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, int flag)
static void drawspeaker (Scene *UNUSED(scene), View3D *UNUSED(v3d), RegionView3D *UNUSED(rv3d), Object *UNUSED(ob), int UNUSED(flag))
static void lattice_draw_verts (Lattice *lt, DispList *dl, short sel)
void lattice_foreachScreenVert (ViewContext *vc, void(*func)(void *userData, BPoint *bp, int x, int y), void *userData)
static void drawlattice__point (Lattice *lt, DispList *dl, int u, int v, int w, int use_wcol)
static void drawlattice (Scene *scene, View3D *v3d, Object *ob)
static void mesh_foreachScreenVert__mapFunc (void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
void mesh_foreachScreenVert (ViewContext *vc, void(*func)(void *userData, EditVert *eve, int x, int y, int index), void *userData, eV3DClipTest clipVerts)
static void drawSelectedVertices__mapFunc (void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
static void drawSelectedVertices (DerivedMesh *dm, Mesh *me)
static int is_co_in_region (ARegion *ar, const short co[2])
static void mesh_foreachScreenEdge__mapFunc (void *userData, int index, float *v0co, float *v1co)
void mesh_foreachScreenEdge (ViewContext *vc, void(*func)(void *userData, EditEdge *eed, int x0, int y0, int x1, int y1, int index), void *userData, eV3DClipTest clipVerts)
static void mesh_foreachScreenFace__mapFunc (void *userData, int index, float *cent, float *UNUSED(no))
void mesh_foreachScreenFace (ViewContext *vc, void(*func)(void *userData, EditFace *efa, int x, int y, int index), void *userData)
void nurbs_foreachScreenVert (ViewContext *vc, void(*func)(void *userData, Nurb *nu, BPoint *bp, BezTriple *bezt, int beztindex, int x, int y), void *userData)
static void draw_dm_face_normals__mapFunc (void *userData, int index, float *cent, float *no)
static void draw_dm_face_normals (Scene *scene, DerivedMesh *dm)
static void draw_dm_face_centers__mapFunc (void *userData, int index, float *cent, float *UNUSED(no))
static void draw_dm_face_centers (DerivedMesh *dm, int sel)
static void draw_dm_vert_normals__mapFunc (void *userData, int index, float *co, float *no_f, short *no_s)
static void draw_dm_vert_normals (Scene *scene, DerivedMesh *dm)
static void draw_dm_verts__mapFunc (void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
static void draw_dm_verts (DerivedMesh *dm, int sel, EditVert *eve_act)
static int draw_dm_edges_sel__setDrawOptions (void *userData, int index)
static void draw_dm_edges_sel (DerivedMesh *dm, unsigned char *baseCol, unsigned char *selCol, unsigned char *actCol, EditEdge *eed_act)
static int draw_dm_edges__setDrawOptions (void *UNUSED(userData), int index)
static void draw_dm_edges (DerivedMesh *dm)
static int draw_dm_edges_sel_interp__setDrawOptions (void *UNUSED(userData), int index)
static void draw_dm_edges_sel_interp__setDrawInterpOptions (void *userData, int index, float t)
static void draw_dm_edges_sel_interp (DerivedMesh *dm, unsigned char *baseCol, unsigned char *selCol)
static int draw_dm_edges_seams__setDrawOptions (void *UNUSED(userData), int index)
static void draw_dm_edges_seams (DerivedMesh *dm)
static int draw_dm_edges_sharp__setDrawOptions (void *UNUSED(userData), int index)
static void draw_dm_edges_sharp (DerivedMesh *dm)
static int draw_dm_faces_sel__setDrawOptions (void *userData, int index, int *UNUSED(drawSmooth_r))
static int draw_dm_faces_sel__compareDrawOptions (void *userData, int index, int next_index)
static void draw_dm_faces_sel (DerivedMesh *dm, unsigned char *baseCol, unsigned char *selCol, unsigned char *actCol, EditFace *efa_act)
static int draw_dm_creases__setDrawOptions (void *UNUSED(userData), int index)
static void draw_dm_creases (DerivedMesh *dm)
static int draw_dm_bweights__setDrawOptions (void *UNUSED(userData), int index)
static void draw_dm_bweights__mapFunc (void *UNUSED(userData), int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
static void draw_dm_bweights (Scene *scene, DerivedMesh *dm)
static void draw_em_fancy_verts (Scene *scene, View3D *v3d, Object *obedit, DerivedMesh *cageDM, EditVert *eve_act)
static void draw_em_fancy_edges (Scene *scene, View3D *v3d, Mesh *me, DerivedMesh *cageDM, short sel_only, EditEdge *eed_act)
static void draw_em_measure_stats (View3D *v3d, Object *ob, EditMesh *em, UnitSettings *unit)
static void draw_em_indices (EditMesh *em)
static int draw_em_fancy__setFaceOpts (void *UNUSED(userData), int index, int *UNUSED(drawSmooth_r))
static int draw_em_fancy__setGLSLFaceOpts (void *UNUSED(userData), int index)
static void draw_em_fancy (Scene *scene, View3D *v3d, RegionView3D *rv3d, Object *ob, EditMesh *em, DerivedMesh *cageDM, DerivedMesh *finalDM, int dt)
static void draw_mesh_object_outline (View3D *v3d, Object *ob, DerivedMesh *dm)
static int wpaint__setSolidDrawOptions (void *UNUSED(userData), int UNUSED(index), int *drawSmooth_r)
static void draw_mesh_fancy (Scene *scene, ARegion *ar, View3D *v3d, RegionView3D *rv3d, Base *base, int dt, int flag)
static int draw_mesh_object (Scene *scene, ARegion *ar, View3D *v3d, RegionView3D *rv3d, Base *base, int dt, int flag)
static int drawDispListwire (ListBase *dlbase)
static void drawDispListsolid (ListBase *lb, Object *ob, int glsl)
static void drawCurveDMWired (Object *ob)
static int drawCurveDerivedMesh (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, int dt)
static int drawDispList (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, int dt)
static void draw_particle_arrays (int draw_as, int totpoint, int ob_dt, int select)
static void draw_particle (ParticleKey *state, int draw_as, short draw, float pixsize, float imat[4][4], float *draw_line, ParticleBillboardData *bb, ParticleDrawData *pdd)
static void draw_new_particle_system (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, ParticleSystem *psys, int ob_dt)
static void draw_update_ptcache_edit (Scene *scene, Object *ob, PTCacheEdit *edit)
static void draw_ptcache_edit (Scene *scene, View3D *v3d, PTCacheEdit *edit)
static void ob_draw_RE_motion (float com[3], float rotscale[3][3], float itw, float ith, float drw_size)
static void tekenhandlesN (Nurb *nu, short sel, short hide_handles)
static void tekenhandlesN_active (Nurb *nu)
static void tekenvertsN (Nurb *nu, short sel, short hide_handles, void *lastsel)
static void editnurb_draw_active_poly (Nurb *nu)
static void editnurb_draw_active_nurbs (Nurb *nu)
static void draw_editnurb (Object *ob, Nurb *nurb, int sel)
static void drawnurb (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, Nurb *nurb, int dt)
static void draw_textcurs (float textcurs[4][2])
static void drawspiral (const float cent[3], float rad, float tmat[][4], int start)
static void drawtube (const float vec[3], float radius, float height, float tmat[][4])
static void drawcone (const float vec[3], float radius, float height, float tmat[][4])
static int drawmball (Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, int dt)
static void draw_forcefield (Scene *scene, Object *ob, RegionView3D *rv3d)
static void draw_box (float vec[8][3])
static void draw_bb_quadric (BoundBox *bb, char type)
static void drawtexspace (Object *ob)
static void drawObjectSelect (Scene *scene, View3D *v3d, ARegion *ar, Base *base)
static void drawWireExtra (Scene *scene, RegionView3D *rv3d, Object *ob)
static void draw_hooks (Object *ob)
static void drawRBpivot (bRigidBodyJointConstraint *data)
void draw_object (Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag)
static void bbs_obmode_mesh_verts__mapFunc (void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
static void bbs_obmode_mesh_verts (Object *ob, DerivedMesh *dm, int offset)
static void bbs_mesh_verts__mapFunc (void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
static void bbs_mesh_verts (DerivedMesh *dm, int offset)
static int bbs_mesh_wire__setDrawOptions (void *userData, int index)
static void bbs_mesh_wire (DerivedMesh *dm, int offset)
static int bbs_mesh_solid__setSolidDrawOptions (void *userData, int index, int *UNUSED(drawSmooth_r))
static void bbs_mesh_solid__drawCenter (void *UNUSED(userData), int index, float *cent, float *UNUSED(no))
static void bbs_mesh_solid_EM (Scene *scene, View3D *v3d, Object *ob, DerivedMesh *dm, int facecol)
static int bbs_mesh_solid__setDrawOpts (void *UNUSED(userData), int index, int *UNUSED(drawSmooth_r))
static int bbs_mesh_solid_hide__setDrawOpts (void *userData, int index, int *UNUSED(drawSmooth_r))
static int bbs_mesh_solid_hide2__setDrawOpts (void *userData, int index, int *UNUSED(drawSmooth_r))
static void bbs_mesh_solid (Scene *scene, Object *ob)
void draw_object_backbufsel (Scene *scene, View3D *v3d, RegionView3D *rv3d, Object *ob)
static void draw_object_mesh_instance (Scene *scene, View3D *v3d, RegionView3D *rv3d, Object *ob, int dt, int outline)
void draw_object_instance (Scene *scene, View3D *v3d, RegionView3D *rv3d, Object *ob, int dt, int outline)

Variables

static unsigned int colortab [24]
static float cube [8][3]
static const float sinval [CIRCLE_RESOL]
static const float cosval [CIRCLE_RESOL]
static ListBase CachedText [3]
static int CachedTextLevel = 0
float view3d_camera_border_hack_col [4]
short view3d_camera_border_hack_test = FALSE
static int draw_index_wire = 1
static int index3_nors_incr = 1

Detailed Description

Definition in file drawobject.c.


Define Documentation

#define CHECK_OB_DRAWTEXTURE (   vd,
  dt 
)
Value:
((ELEM(vd->drawtype, OB_TEXTURE, OB_MATERIAL) && dt>OB_SOLID) ||          \
    (vd->drawtype==OB_SOLID && vd->flag2 & V3D_SOLID_TEX))

Definition at line 111 of file drawobject.c.

Referenced by draw_em_fancy(), draw_glsl_material(), and draw_mesh_fancy().

#define CIRCLE_RESOL   32
#define TH_HANDLE_COL_TOT   ((TH_HANDLE_SEL_FREE - TH_HANDLE_FREE) + 1)

Referenced by tekenhandlesN().


Typedef Documentation


Enumeration Type Documentation

Enumerator:
OBDRAW_WIRE_OFF 
OBDRAW_WIRE_ON 
OBDRAW_WIRE_ON_DEPTH 

Definition at line 115 of file drawobject.c.


Function Documentation

static void bbs_mesh_solid ( Scene scene,
Object ob 
) [static]
static void bbs_mesh_solid__drawCenter ( void *  UNUSEDuserData,
int  index,
float *  cent,
float *  UNUSEDno 
) [static]
static int bbs_mesh_solid__setDrawOpts ( void *  UNUSEDuserData,
int  index,
int *  UNUSEDdrawSmooth_r 
) [static]

Definition at line 7045 of file drawobject.c.

References WM_set_framebuffer_index_color().

Referenced by bbs_mesh_solid().

static int bbs_mesh_solid__setSolidDrawOptions ( void *  userData,
int  index,
int *  UNUSEDdrawSmooth_r 
) [static]

Definition at line 7000 of file drawobject.c.

References EM_get_face_for_index(), and WM_set_framebuffer_index_color().

Referenced by bbs_mesh_solid_EM().

static void bbs_mesh_solid_EM ( Scene scene,
View3D v3d,
Object ob,
DerivedMesh dm,
int  facecol 
) [static]
static int bbs_mesh_solid_hide2__setDrawOpts ( void *  userData,
int  index,
int *  UNUSEDdrawSmooth_r 
) [static]

Definition at line 7064 of file drawobject.c.

References MFace::flag, ME_HIDE, and Mesh::mface.

Referenced by draw_object_backbufsel().

static int bbs_mesh_solid_hide__setDrawOpts ( void *  userData,
int  index,
int *  UNUSEDdrawSmooth_r 
) [static]

Definition at line 7051 of file drawobject.c.

References MFace::flag, ME_HIDE, Mesh::mface, and WM_set_framebuffer_index_color().

Referenced by bbs_mesh_solid().

static void bbs_mesh_verts ( DerivedMesh dm,
int  offset 
) [static]
static void bbs_mesh_verts__mapFunc ( void *  userData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]
static void bbs_mesh_wire ( DerivedMesh dm,
int  offset 
) [static]

Definition at line 6995 of file drawobject.c.

References bbs_mesh_wire__setDrawOptions(), and DerivedMesh::drawMappedEdges.

Referenced by draw_object_backbufsel().

static int bbs_mesh_wire__setDrawOptions ( void *  userData,
int  index 
) [static]

Definition at line 6983 of file drawobject.c.

References EM_get_edge_for_index(), EditEdge::h, and WM_set_framebuffer_index_color().

Referenced by bbs_mesh_wire().

static void bbs_obmode_mesh_verts ( Object ob,
DerivedMesh dm,
int  offset 
) [static]
static void bbs_obmode_mesh_verts__mapFunc ( void *  userData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]
static int check_alpha_pass ( Base base) [static]

Definition at line 310 of file drawobject.c.

References Object::dtx, Base::flag, G, G_PICKSEL, OB_DRAWTRANSP, OB_FROMDUPLI, and Base::object.

Referenced by draw_mesh_object().

static int check_ob_drawface_dot ( Scene sce,
View3D vd,
char  dt 
) [static]
static void circball_array_fill ( float  verts[CIRCLE_RESOL][3],
const float  cent[3],
float  rad,
float  tmat[][4] 
) [static]

Definition at line 700 of file drawobject.c.

References CIRCLE_RESOL, cosval, mul_v3_v3fl(), and sinval.

Referenced by drawcentercircle(), and drawcircball().

static void draw_bb_quadric ( BoundBox bb,
char  type 
) [static]

Definition at line 5916 of file drawobject.c.

References fabsf, OB_BOUND_CONE, OB_BOUND_CYLINDER, OB_BOUND_SPHERE, and BoundBox::vec.

Referenced by draw_bounding_volume().

static void draw_bounding_volume ( Scene scene,
Object ob,
char  type 
) [static]
static void draw_box ( float  vec[8][3]) [static]

Definition at line 5879 of file drawobject.c.

Referenced by draw_bounding_volume(), and drawtexspace().

static void draw_bundle_sphere ( void  ) [static]

Definition at line 1480 of file drawobject.c.

Referenced by draw_viewport_object_reconstruction().

static void draw_dm_bweights ( Scene scene,
DerivedMesh dm 
) [static]
static void draw_dm_bweights__mapFunc ( void *  UNUSEDuserData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]
static int draw_dm_bweights__setDrawOptions ( void *  UNUSEDuserData,
int  index 
) [static]
static void draw_dm_creases ( DerivedMesh dm) [static]

Definition at line 2488 of file drawobject.c.

References draw_dm_creases__setDrawOptions(), DerivedMesh::drawMappedEdges, and NULL.

Referenced by draw_em_fancy().

static int draw_dm_creases__setDrawOptions ( void *  UNUSEDuserData,
int  index 
) [static]
static void draw_dm_edges ( DerivedMesh dm) [static]

Definition at line 2358 of file drawobject.c.

References draw_dm_edges__setDrawOptions(), DerivedMesh::drawMappedEdges, and NULL.

Referenced by draw_em_fancy_edges().

static int draw_dm_edges__setDrawOptions ( void *  UNUSEDuserData,
int  index 
) [static]

Definition at line 2354 of file drawobject.c.

References EM_get_edge_for_index(), and EditEdge::h.

Referenced by draw_dm_edges().

static void draw_dm_edges_seams ( DerivedMesh dm) [static]

Definition at line 2396 of file drawobject.c.

References draw_dm_edges_seams__setDrawOptions(), DerivedMesh::drawMappedEdges, and NULL.

Referenced by draw_em_fancy().

static int draw_dm_edges_seams__setDrawOptions ( void *  UNUSEDuserData,
int  index 
) [static]

Definition at line 2390 of file drawobject.c.

References EM_get_edge_for_index(), EditEdge::h, and EditEdge::seam.

Referenced by draw_dm_edges_seams().

static void draw_dm_edges_sel ( DerivedMesh dm,
unsigned char *  baseCol,
unsigned char *  selCol,
unsigned char *  actCol,
EditEdge eed_act 
) [static]
static int draw_dm_edges_sel__setDrawOptions ( void *  userData,
int  index 
) [static]
static void draw_dm_edges_sel_interp ( DerivedMesh dm,
unsigned char *  baseCol,
unsigned char *  selCol 
) [static]
static void draw_dm_edges_sel_interp__setDrawInterpOptions ( void *  userData,
int  index,
float  t 
) [static]

Definition at line 2368 of file drawobject.c.

References EM_get_edge_for_index(), EditVert::f, SELECT, EditEdge::v1, and EditEdge::v2.

Referenced by draw_dm_edges_sel_interp().

static int draw_dm_edges_sel_interp__setDrawOptions ( void *  UNUSEDuserData,
int  index 
) [static]

Definition at line 2364 of file drawobject.c.

References EM_get_edge_for_index(), and EditEdge::h.

Referenced by draw_dm_edges_sel_interp().

static void draw_dm_edges_sharp ( DerivedMesh dm) [static]

Definition at line 2408 of file drawobject.c.

References draw_dm_edges_sharp__setDrawOptions(), DerivedMesh::drawMappedEdges, and NULL.

Referenced by draw_em_fancy().

static int draw_dm_edges_sharp__setDrawOptions ( void *  UNUSEDuserData,
int  index 
) [static]

Definition at line 2402 of file drawobject.c.

References EM_get_edge_for_index(), EditEdge::h, and EditEdge::sharp.

Referenced by draw_dm_edges_sharp().

static void draw_dm_face_centers ( DerivedMesh dm,
int  sel 
) [static]
static void draw_dm_face_centers__mapFunc ( void *  userData,
int  index,
float *  cent,
float *  UNUSEDno 
) [static]
static void draw_dm_face_normals ( Scene scene,
DerivedMesh dm 
) [static]

Definition at line 2226 of file drawobject.c.

References draw_dm_face_normals__mapFunc(), and DerivedMesh::foreachMappedFaceCenter.

Referenced by draw_em_fancy().

static void draw_dm_face_normals__mapFunc ( void *  userData,
int  index,
float *  cent,
float *  no 
) [static]
static void draw_dm_faces_sel ( DerivedMesh dm,
unsigned char *  baseCol,
unsigned char *  selCol,
unsigned char *  actCol,
EditFace efa_act 
) [static]
static int draw_dm_faces_sel__compareDrawOptions ( void *  userData,
int  index,
int  next_index 
) [static]
static int draw_dm_faces_sel__setDrawOptions ( void *  userData,
int  index,
int *  UNUSEDdrawSmooth_r 
) [static]
static void draw_dm_vert_normals ( Scene scene,
DerivedMesh dm 
) [static]

Definition at line 2269 of file drawobject.c.

References draw_dm_vert_normals__mapFunc(), and DerivedMesh::foreachMappedVert.

Referenced by draw_em_fancy().

static void draw_dm_vert_normals__mapFunc ( void *  userData,
int  index,
float *  co,
float *  no_f,
short *  no_s 
) [static]
static void draw_dm_verts ( DerivedMesh dm,
int  sel,
EditVert eve_act 
) [static]
static void draw_dm_verts__mapFunc ( void *  userData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]
static void draw_editnurb ( Object ob,
Nurb nurb,
int  sel 
) [static]
static void draw_em_fancy ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Object ob,
EditMesh em,
DerivedMesh cageDM,
DerivedMesh finalDM,
int  dt 
) [static]
static int draw_em_fancy__setFaceOpts ( void *  UNUSEDuserData,
int  index,
int *  UNUSEDdrawSmooth_r 
) [static]

Definition at line 2846 of file drawobject.c.

References EM_get_face_for_index(), GPU_enable_material(), EditFace::h, EditFace::mat_nr, and NULL.

Referenced by draw_em_fancy().

static int draw_em_fancy__setGLSLFaceOpts ( void *  UNUSEDuserData,
int  index 
) [static]

Definition at line 2858 of file drawobject.c.

References EM_get_face_for_index(), and EditFace::h.

Referenced by draw_em_fancy().

static void draw_em_fancy_edges ( Scene scene,
View3D v3d,
Mesh me,
DerivedMesh cageDM,
short  sel_only,
EditEdge eed_act 
) [static]
static void draw_em_fancy_verts ( Scene scene,
View3D v3d,
Object obedit,
DerivedMesh cageDM,
EditVert eve_act 
) [static]
static void draw_em_indices ( EditMesh em) [static]
static void draw_em_measure_stats ( View3D v3d,
Object ob,
EditMesh em,
UnitSettings unit 
) [static]
static void draw_empty_cone ( float  size) [static]

Definition at line 5443 of file drawobject.c.

References size().

Referenced by drawaxes().

static void draw_empty_image ( Object ob) [static]
static void draw_empty_sphere ( float  size) [static]

Definition at line 5409 of file drawobject.c.

Referenced by drawaxes().

static void draw_focus_cross ( float  dist,
float  size 
) [static]

Definition at line 1463 of file drawobject.c.

Referenced by drawcamera().

static void draw_forcefield ( Scene scene,
Object ob,
RegionView3D rv3d 
) [static]
int draw_glsl_material ( Scene scene,
Object ob,
View3D v3d,
int  dt 
)
static void draw_hooks ( Object ob) [static]
static void draw_limit_line ( float  sta,
float  end,
unsigned int  col 
) [static]

Definition at line 1444 of file drawobject.c.

References cpack.

Referenced by drawcamera().

static void draw_mesh_fancy ( Scene scene,
ARegion ar,
View3D v3d,
RegionView3D rv3d,
Base base,
int  dt,
int  flag 
) [static]

Definition at line 3067 of file drawobject.c.

References bglPolygonOffset(), Object::boundtype, DynamicPaintModifierData::canvas, CD_WEIGHT_MCOL, CHECK_OB_DRAWTEXTURE, Scene::customdata_mask, Object::data, RegionView3D::dist, DM_get_face_data_layer(), ARegion::do_draw, draw_bounding_volume(), DRAW_CONSTCOLOR, DRAW_DYNAMIC_PAINT_PREVIEW, DRAW_FACE_SELECT, draw_glsl_material(), draw_mesh_object_outline(), draw_mesh_textured(), DRAW_PICKING, DerivedMesh::drawEdges, DerivedMesh::drawFacesGLSL, DerivedMesh::drawFacesSolid, Mesh::drawflag, DerivedMesh::drawLooseEdges, DerivedMesh::drawMappedFaces, drawSelectedVertices(), View3D::drawtype, DerivedMesh::drawVerts, Object::dtx, eModifierMode_Realtime, eModifierType_DynamicPaint, Base::flag, View3D::flag, Mesh::flag, Object::flag, View3D::flag2, DynamicPaintCanvasSettings::flags, Paint::flags, G, G_PICKSEL, DerivedMesh::getNumEdges, DerivedMesh::getNumFaces, give_current_material(), GPU_disable_material(), GPU_enable_material(), GPU_end_object_materials(), interp_v3_v3v3(), MA_TYPE_HALO, Material::material_type, Mesh::mcol, ME_ALLEDGES, ME_TWOSIDED, mesh_get_derived_final(), Mesh::mface, MOD_DPAINT_PREVIEW_READY, ModifierData::mode, Object::mode, modifiers_findByType(), NULL, OB_BOUNDBOX, OB_DRAWWIRE, OB_FROMGROUP, OB_MODE_PARTICLE_EDIT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OB_NEG_SCALE, OB_PAINT, OB_SOLID, OB_WIRE, OBACT, OBDRAW_WIRE_OFF, OBDRAW_WIRE_ON, OBDRAW_WIRE_ON_DEPTH, Base::object, p, paint_facesel_test(), PAINT_FAST_NAVIGATE, paint_get_active(), paint_vertsel_test(), SculptSession::partial_redraw, DerivedMesh::release, RegionView3D::rflag, RGN_DRAW_PARTIAL, RV3D_NAVIGATING, Object::sculpt, sculpt_get_redraw_planes(), SELECT, TH_ACTIVE, TH_BACK, TH_GROUP, TH_GROUP_ACTIVE, TH_SELECT, TH_VERTEX_SIZE, TH_WIRE, Object::transflag, UI_GetThemeColor3fv(), UI_GetThemeValuef(), UI_ThemeColor(), UI_ThemeColorShade(), V3D_RENDER_OVERRIDE, V3D_SELECT_OUTLINE, and wpaint__setSolidDrawOptions().

Referenced by draw_mesh_object().

static int draw_mesh_object ( Scene scene,
ARegion ar,
View3D v3d,
RegionView3D rv3d,
Base base,
int  dt,
int  flag 
) [static]
static void draw_mesh_object_outline ( View3D v3d,
Object ob,
DerivedMesh dm 
) [static]
static void draw_new_particle_system ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
ParticleSystem psys,
int  ob_dt 
) [static]

Definition at line 4024 of file drawobject.c.

References add_v3_v3v3(), ParticleBillboardData::align, ParticleBillboardData::anim, ParticleSettings::bb_align, ParticleSettings::bb_anim, ParticleSettings::bb_ob, ParticleSettings::bb_offset, ParticleSettings::bb_rand_tilt, ParticleSettings::bb_size, ParticleSettings::bb_tilt, ParticleSettings::bb_vel_head, ParticleSettings::bb_vel_tail, BKE_curframe(), BLI_snprintf(), ParticleData::boid, View3D::camera, ParticleDrawData::cd, ParticleDrawData::cdata, ParticleSystem::child, ParticleSystem::childcache, CLAMP(), ParticleKey::co, ParticleCacheKey::co, ParticleCacheKey::col, ParticleSettings::color_vec_max, copy_m4_m4(), copy_v3_v3(), cpack, BoidParticle::data, ParticleData::dietime, ParticleSettings::disp, ParticleSettings::draw, ParticleSettings::draw_as, ParticleSettings::draw_col, ParticleSettings::draw_line, draw_particle(), draw_particle_arrays(), ParticleSettings::draw_size, drawcircball(), ParticleSettings::dup_group, ParticleSettings::dup_ob, ED_view3d_pixel_size(), ELEM, ELEM3, end_latt_deform(), Base::flag, Object::flag, ParticleEditSettings::flag, ParticleData::flag, ParticleSystem::flag, ParticleDrawData::flag, View3D::flag2, give_current_material(), glLoadMatrixf, glMultMatrixf, BoidData::health, i, ParticleSystem::imat, Object::imat, invert_m4_m4(), ParticleSystem::lattice, len_v3(), len_v3v3(), length(), ParticleData::lifetime, ParticleBillboardData::lock, ParticleDrawData::ma_col, MEM_callocN(), MEM_freeN(), mul_m4_v3(), mul_v3_m4v3(), mul_v3_v3fl(), mult_m4_m4m4(), ParticleDrawData::nd, ParticleDrawData::ndata, normalize_v3(), NULL, ParticleSimulationData::ob, ParticleBillboardData::ob, OB_FROMDUPLI, OB_FROMGROUP, OB_WIRE, Base::object, Object::obmat, ParticleBillboardData::offset, ParticleSettings::omat, ParticleSystem::parent, PARS_NO_DISP, PARS_UNEXIST, ParticleSystem::part, PART_ABS_PATH_TIME, PART_BB_VEL, PART_DRAW_AXIS, PART_DRAW_BB, PART_DRAW_BB_LOCK, PART_DRAW_CIRC, PART_DRAW_COL_ACC, PART_DRAW_COL_MAT, PART_DRAW_COL_VEL, PART_DRAW_CROSS, PART_DRAW_DOT, PART_DRAW_GR, PART_DRAW_HEALTH, PART_DRAW_LINE, PART_DRAW_NOT, PART_DRAW_NUM, PART_DRAW_OB, PART_DRAW_PARENT, PART_DRAW_PATH, PART_DRAW_REND, PART_DRAW_SIZE, PART_DRAW_VEL, PART_HAIR, PART_PHYS_BOIDS, PART_PHYS_KEYED, PARTICLE_DRAW_DATA_UPDATED, ParticleSystem::particles, ParticleSettings::path_end, ParticleSystem::pathcache, ParticleSystem::pdd, PE_DRAW_PART, PE_settings(), ParticleSettings::phystype, ParticleData::prev_state, ParticleSimulationData::psmd, ParticleSimulationData::psys, psys_check_enabled(), psys_count_keyed_targets(), PSYS_DRAWING, PSYS_FRAND, psys_free_pdd(), psys_get_child_size(), psys_get_child_time(), psys_get_current(), psys_get_lattice(), psys_get_modifier(), psys_get_particle_on_path(), psys_get_particle_state(), psys_get_timestep(), psys_in_edit_mode(), PSYS_KEYED, psys_make_temp_pointcache(), Material::r, ParticleSettings::randlength, ParticleSettings::ren_as, rgb_float_to_byte(), ParticleSimulationData::scene, SELECT, setlinestyle(), ParticleData::size, ParticleBillboardData::size, state, ParticleData::state, ParticleCacheKey::steps, TH_ACTIVE, ParticleBillboardData::tilt, ParticleKey::time, ParticleBillboardData::time, ParticleData::time, ParticleDrawData::tot_vec_size, ParticleSystem::totchild, ParticleSystem::totkeyed, ParticleSystem::totpart, ParticleDrawData::totpoint, ParticleSettings::trail_count, ParticleSettings::type, UI_ThemeColor(), V3D_CACHE_TEXT_ASCII, V3D_CACHE_TEXT_WORLDSPACE, V3D_RENDER_OVERRIDE, ParticleDrawData::vd, ParticleDrawData::vdata, ParticleDrawData::ved, ParticleDrawData::vedata, ParticleCacheKey::vel, ParticleKey::vel, view3d_cached_text_draw_add(), RegionView3D::viewinv, RegionView3D::viewmat, weight_to_rgb(), and View3D::zbuf.

Referenced by draw_object().

void draw_object ( Scene scene,
ARegion ar,
View3D v3d,
Base base,
int  flag 
)

Definition at line 6186 of file drawobject.c.

References Curve::actbox, ACTIVE, add_view3d_after(), View3D::afterdraw_xray, Object::avs, BA_WAS_SEL, Scene::basact, Object::bb, Curve::bb, bglBegin(), bglEnd(), bglVertex3fv(), BKE_curframe(), BKE_font_getselection(), Object::boundtype, bObjectSolverConstraint::camera, bFollowTrackConstraint::camera, View3D::camera, Scene::camera, SmokeModifierData::coll, Object::collision_boundtype, MakeCursor::color, colortab, CONSTRAINT_DRAW_PIVOT, CONSTRAINT_EXPAND, constraint_get_typeinfo(), CONSTRAINT_OBTYPE_OBJECT, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_RIGIDBODYJOINT, Object::constraints, constraints_clear_evalob(), constraints_make_evalob(), copy_m3_m3(), copy_v3_v3(), cpack, CU_FAST, curve_editnurbs(), Object::data, data, bConstraint::data, DESELECT, Object::disp, SmokeModifierData::domain, draw_armature(), draw_bounding_volume(), DRAW_CONSTCOLOR, draw_empty_image(), draw_forcefield(), draw_hooks(), draw_mesh_object(), draw_motion_path_instance(), draw_motion_paths_cleanup(), draw_motion_paths_init(), draw_new_particle_system(), DRAW_PICKING, draw_ptcache_edit(), DRAW_SCENESET, draw_textcurs(), draw_update_ptcache_edit(), draw_volume(), drawaxes(), drawcamera(), drawcentercircle(), drawcircball(), drawDispList(), drawlamp(), drawlattice(), drawmball(), drawnurb(), drawObjectSelect(), drawRBpivot(), drawspeaker(), drawtexspace(), View3D::drawtype, drawWireExtra(), Object::dt, Object::dtx, SmokeDomainSettings::dx, SmokeDomainSettings::dx_wt, ED_view3d_boundbox_clip(), ED_view3d_init_mats_rv3d_gl(), MetaBall::editelems, Curve::editfont, Curve::editnurb, ELEM, ELEM3, eModifierType_Smoke, Object::empty_drawsize, Object::empty_drawtype, FALSE, ListBase::first, bConstraint::flag, Curve::flag, bRigidBodyJointConstraint::flag, Base::flag, View3D::flag, Object::flag, View3D::flag2, SmokeDomainSettings::fluid, bConstraintTypeInfo::flush_constraint_targets, PartDeflect::forcefield, free_old_images(), Curve::fsize, G, G_RENDER_OGL, G_TRANSFORM_OBJ, Object::gameflag, bConstraintTypeInfo::get_constraint_targets, bConstraintTypeInfo::get_target_matrix, glLoadMatrixf, glMultMatrixf, GPU_create_smoke(), GPU_disable_material(), GPU_enable_material(), GPU_free_smoke(), TextBox::h, SelBox::h, i, Object::id, Object::imat, Object::inertia, invert_m4_m4(), Object::lay, View3D::lay, SoftBody::lcom, ID::lib, Curve::linedist, Curve::lines, Curve::linewidth, SoftBody::lrot, SoftBody::lscale, makeDispListCurveTypes(), bConstraintTarget::matrix, MIN2, MOD_SMOKE_TYPE_COLL, MOD_SMOKE_VIEW_SHOWBIG, Object::mode, modifiers_findByType(), Object::mpath, mul_m3_m3m3(), ID::name, bConstraint::next, ParticleSystem::next, bConstraintTarget::next, NULL, OB_ARMATURE, OB_ARROWS, OB_AXIS, OB_BOUND_SPHERE, OB_BOUNDBOX, OB_BOUNDS, OB_CAMERA, OB_CURVE, ob_draw_RE_motion(), OB_DRAWNAME, OB_DRAWTRANSP, OB_DRAWWIRE, OB_DRAWXRAY, OB_DYNAMIC, OB_EMPTY, OB_EMPTY_IMAGE, OB_FONT, OB_FROMDUPLI, OB_FROMGROUP, OB_LAMP, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_EDIT, OB_MODE_PARTICLE_EDIT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OB_PAINT, OB_RENDER, OB_RESTRICT_RENDER, OB_RESTRICT_VIEW, OB_SOLID, OB_SPEAKER, OB_SURF, OB_TEXSPACE, OB_WIRE, OBACT, UserDef::obcenter_dia, Scene::obedit, Base::object, Object::obmat, Object::orig, SmokeDomainSettings::p0, SmokeDomainSettings::p1, Object::parent, Object::particlesystem, Object::pd, PE_create_current(), RegionView3D::persp, project_short(), PTCacheEdit::psys, ARegion::regiondata, SmokeDomainSettings::res, SmokeDomainSettings::res_wt, Object::restrictflag, rgb_float_to_byte(), RV3D_CAMOB, SBSO_ESTIMATEIPO, Curve::selboxes, SELECT, set_inverted_drawing(), setlinestyle(), smoke_get_density(), smoke_get_index(), Object::soft, SoftBody::solverflags, Base::sx, Curve::tb, SmokeDomainSettings::tex, SmokeDomainSettings::tex_shadow, EditFont::textcurs, TH_ACTIVE, TH_GRID, TH_GROUP, TH_GROUP_ACTIVE, TH_LAMP, TH_SELECT, TH_SPEAKER, TH_TRANSFORM, TH_WIRE, Curve::totbox, View3D::transp, bConstraint::type, Object::type, SmokeModifierData::type, bConstraintTypeInfo::type, U, UI_GetThemeColor3ubv(), UI_make_axis_color(), UI_ThemeColor(), UI_ThemeColorShade(), unit_m4(), ID::us, V3D_DRAW_CENTERS, V3D_HIDE_HELPLINES, V3D_RENDER_OVERRIDE, V3D_SELECT_OUTLINE, view3d_cached_text_draw_add(), view3d_cached_text_draw_begin(), view3d_cached_text_draw_end(), RegionView3D::viewmat, RegionView3D::viewmatob, SmokeDomainSettings::viewsettings, SelBox::w, TextBox::w, SmokeDomainSettings::wt, TextBox::x, SelBox::x, Curve::xof, View3D::xray, TextBox::y, SelBox::y, Curve::yof, and View3D::zbuf.

Referenced by draw_depth(), draw_dupli_objects_color(), ED_view3d_draw_offscreen(), view3d_draw_transp(), view3d_draw_xray(), view3d_draw_xraytransp(), view3d_main_area_draw_objects(), and view3d_opengl_select().

void draw_object_backbufsel ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Object ob 
)
void draw_object_instance ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Object ob,
int  dt,
int  outline 
)
static void draw_object_mesh_instance ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Object ob,
int  dt,
int  outline 
) [static]
static void draw_particle ( ParticleKey state,
int  draw_as,
short  draw,
float  pixsize,
float  imat[4][4],
float *  draw_line,
ParticleBillboardData bb,
ParticleDrawData pdd 
) [static]
static void draw_particle_arrays ( int  draw_as,
int  totpoint,
int  ob_dt,
int  select 
) [static]

Definition at line 3844 of file drawobject.c.

References OB_WIRE, PART_DRAW_AXIS, PART_DRAW_BB, PART_DRAW_CROSS, and PART_DRAW_LINE.

Referenced by draw_new_particle_system().

static void draw_ptcache_edit ( Scene scene,
View3D v3d,
PTCacheEdit edit 
) [static]
static void draw_spot_cone ( Lamp la,
float  x,
float  z 
) [static]

Definition at line 1088 of file drawobject.c.

References angle(), cosf, fabs(), LA_SQUARE, M_PI, Lamp::mode, and sinf.

Referenced by draw_transp_spot_volume().

static void draw_textcurs ( float  textcurs[4][2]) [static]

Definition at line 5497 of file drawobject.c.

References cpack, and set_inverted_drawing().

Referenced by draw_object().

static void draw_transp_spot_volume ( Lamp la,
float  x,
float  z 
) [static]

Definition at line 1115 of file drawobject.c.

References draw_spot_cone().

Referenced by drawlamp().

static void draw_update_ptcache_edit ( Scene scene,
Object ob,
PTCacheEdit edit 
) [static]
static void draw_viewport_object_reconstruction ( Scene scene,
Base base,
View3D v3d,
MovieClip clip,
MovieTrackingObject tracking_object,
int  flag,
int *  global_track_index 
) [static]
static void draw_viewport_reconstruction ( Scene scene,
Base base,
View3D v3d,
MovieClip clip,
int  flag 
) [static]
static void draw_xyz_wire ( const float  c[3],
float  size,
int  axis 
) [static]

Definition at line 417 of file drawobject.c.

References add_v3_v3(), add_v3_v3v3(), copy_v3_v3(), mul_v3_fl(), sub_v3_v3(), and sub_v3_v3v3().

Referenced by drawaxes().

void drawaxes ( float  size,
char  drawtype 
)
static void drawcamera ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
int  flag 
) [static]
static void drawcentercircle ( View3D v3d,
RegionView3D rv3d,
const float  co[3],
int  selstate,
int  special_color 
) [static]
void drawcircball ( int  mode,
const float  cent[3],
float  rad,
float  tmat[][4] 
)
static void drawcircle_size ( float  size) [static]

Definition at line 5580 of file drawobject.c.

References CIRCLE_RESOL, cosval, degrees(), and sinval.

Referenced by drawaxes().

static void drawcone ( const float  vec[3],
float  radius,
float  height,
float  tmat[][4] 
) [static]

Definition at line 5622 of file drawobject.c.

References copy_v3_v3(), and drawcircball().

Referenced by draw_forcefield(), and drawlamp().

static void drawcube ( void  ) [static]

Definition at line 917 of file drawobject.c.

Referenced by draw_bounding_volume().

static void drawcube_size ( float  size) [static]

Definition at line 942 of file drawobject.c.

Referenced by drawaxes().

static int drawCurveDerivedMesh ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
int  dt 
) [static]
static void drawCurveDMWired ( Object ob) [static]

Definition at line 3682 of file drawobject.c.

References Object::derivedFinal, and DerivedMesh::drawEdges.

Referenced by drawCurveDerivedMesh(), and drawWireExtra().

static int drawDispList ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
int  dt 
) [static]
static void drawDispListsolid ( ListBase lb,
Object ob,
int  glsl 
) [static]
static int drawDispListwire ( ListBase dlbase) [static]
static void drawlamp ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
int  dt,
int  flag 
) [static]
static void drawlattice ( Scene scene,
View3D v3d,
Object ob 
) [static]
static void drawlattice__point ( Lattice lt,
DispList dl,
int  u,
int  v,
int  w,
int  use_wcol 
) [static]
static int drawmball ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
int  dt 
) [static]
static void drawnurb ( Scene scene,
View3D v3d,
RegionView3D rv3d,
Base base,
Nurb nurb,
int  dt 
) [static]
static void drawObjectSelect ( Scene scene,
View3D v3d,
ARegion ar,
Base base 
) [static]
static void drawRBpivot ( bRigidBodyJointConstraint data) [static]
static void drawSelectedVertices ( DerivedMesh dm,
Mesh me 
) [static]
static void drawSelectedVertices__mapFunc ( void *  userData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]

Definition at line 2030 of file drawobject.c.

References MVert::flag, ME_HIDE, and SELECT.

Referenced by drawSelectedVertices().

static void drawshadbuflimits ( Lamp la,
float  mat[][4] 
) [static]
static void drawspeaker ( Scene UNUSEDscene,
View3D UNUSEDv3d,
RegionView3D UNUSEDrv3d,
Object UNUSEDob,
int   UNUSEDflag 
) [static]

Definition at line 1805 of file drawobject.c.

References cosf, i, M_PI, and sinf.

Referenced by draw_object().

static void drawspiral ( const float  cent[3],
float  rad,
float  tmat[][4],
int  start 
) [static]

Definition at line 5511 of file drawobject.c.

References CIRCLE_RESOL, copy_v3_v3(), cosval, FALSE, inverse(), mul_v3_v3fl(), sinval, and TRUE.

Referenced by draw_forcefield().

static void drawtexspace ( Object ob) [static]
static void drawtube ( const float  vec[3],
float  radius,
float  height,
float  tmat[][4] 
) [static]

Definition at line 5600 of file drawobject.c.

References copy_v3_v3(), and drawcircball().

Referenced by draw_forcefield().

static void drawWireExtra ( Scene scene,
RegionView3D rv3d,
Object ob 
) [static]
static void editnurb_draw_active_nurbs ( Nurb nu) [static]
static void editnurb_draw_active_poly ( Nurb nu) [static]

Definition at line 5138 of file drawobject.c.

References Nurb::bp, Nurb::flagu, Nurb::pntsu, Nurb::pntsv, TH_ACTIVE_SPLINE, UI_ThemeColor(), and BPoint::vec.

Referenced by draw_editnurb().

static int is_co_in_region ( ARegion ar,
const short  co[2] 
) [static]

Definition at line 2055 of file drawobject.c.

References IS_CLIPPED, ARegion::winx, and ARegion::winy.

Referenced by mesh_foreachScreenEdge__mapFunc().

static void lattice_draw_verts ( Lattice lt,
DispList dl,
short  sel 
) [static]
void lattice_foreachScreenVert ( ViewContext vc,
void(*)(void *userData, BPoint *bp, int x, int y)  func,
void *  userData 
)
void mesh_foreachScreenEdge ( ViewContext vc,
void(*)(void *userData, EditEdge *eed, int x0, int y0, int x1, int y1, int index)  func,
void *  userData,
eV3DClipTest  clipVerts 
)
static void mesh_foreachScreenEdge__mapFunc ( void *  userData,
int  index,
float *  v0co,
float *  v1co 
) [static]
void mesh_foreachScreenFace ( ViewContext vc,
void(*)(void *userData, EditFace *efa, int x, int y, int index)  func,
void *  userData 
)
static void mesh_foreachScreenFace__mapFunc ( void *  userData,
int  index,
float *  cent,
float *  UNUSEDno 
) [static]
void mesh_foreachScreenVert ( ViewContext vc,
void(*)(void *userData, EditVert *eve, int x, int y, int index)  func,
void *  userData,
eV3DClipTest  clipVerts 
)
static void mesh_foreachScreenVert__mapFunc ( void *  userData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]
void nurbs_foreachScreenVert ( ViewContext vc,
void(*)(void *userData, Nurb *nu, BPoint *bp, BezTriple *bezt, int beztindex, int x, int y)  func,
void *  userData 
)
static void ob_draw_RE_motion ( float  com[3],
float  rotscale[3][3],
float  itw,
float  ith,
float  drw_size 
) [static]

Definition at line 4812 of file drawobject.c.

References add_v3_v3(), copy_m3_m3(), mul_m3_v3(), and MakeCursor::root.

Referenced by draw_object().

static void spotvolume ( float  lvec[3],
float  vvec[3],
const float  inp 
) [static]
static void tekenhandlesN ( Nurb nu,
short  sel,
short  hide_handles 
) [static]
static void tekenhandlesN_active ( Nurb nu) [static]
static void tekenvertsN ( Nurb nu,
short  sel,
short  hide_handles,
void *  lastsel 
) [static]
void view3d_cached_text_draw_add ( const float  co[3],
const char *  str,
short  xoffs,
short  flag,
const unsigned char  col[4] 
)
void view3d_cached_text_draw_begin ( void  )

Definition at line 789 of file drawobject.c.

References CachedTextLevel, ListBase::first, ListBase::last, NULL, and strings.

Referenced by draw_object().

void view3d_cached_text_draw_end ( View3D v3d,
ARegion ar,
int  depth_write,
float  mat[][4] 
)
static void view3d_project_short_clip ( ARegion ar,
const float  vec[3],
short  adr[2],
int  local 
) [static]
static void view3d_project_short_clip_persmat ( ARegion ar,
float *  vec,
short  adr[2],
int  local 
) [static]
static void view3d_project_short_noclip ( ARegion ar,
const float  vec[3],
short  adr[2] 
) [static]
static int wpaint__setSolidDrawOptions ( void *  UNUSEDuserData,
int   UNUSEDindex,
int *  drawSmooth_r 
) [static]

Definition at line 3061 of file drawobject.c.

Referenced by draw_mesh_fancy().


Variable Documentation

ListBase CachedText[3] [static]

Definition at line 772 of file drawobject.c.

int CachedTextLevel = 0 [static]
unsigned int colortab[24] [static]
Initial value:
    {0x0,       0xFF88FF, 0xFFBBFF, 
     0x403000,  0xFFFF88, 0xFFFFBB, 
     0x104040,  0x66CCCC, 0x77CCCC, 
     0x104010,  0x55BB55, 0x66FF66, 
     0xFFFFFF
}

Definition at line 322 of file drawobject.c.

Referenced by draw_object().

const float cosval[CIRCLE_RESOL] [static]

Definition at line 382 of file drawobject.c.

Referenced by circball_array_fill(), drawcircle_size(), and drawspiral().

float cube[8][3] [static]
Initial value:
 {
    {-1.0, -1.0, -1.0},
    {-1.0, -1.0,  1.0},
    {-1.0,  1.0,  1.0},
    {-1.0,  1.0, -1.0},
    { 1.0, -1.0, -1.0},
    { 1.0, -1.0,  1.0},
    { 1.0,  1.0,  1.0},
    { 1.0,  1.0, -1.0},
}

Definition at line 331 of file drawobject.c.

int draw_index_wire = 1 [static]

Definition at line 3467 of file drawobject.c.

int index3_nors_incr = 1 [static]

Definition at line 3468 of file drawobject.c.

const float sinval[CIRCLE_RESOL] [static]

Definition at line 346 of file drawobject.c.

Referenced by circball_array_fill(), drawcircle_size(), and drawspiral().

Definition at line 1474 of file drawobject.c.

Referenced by drawcamera(), and drawviewborder().

Definition at line 1475 of file drawobject.c.

Referenced by drawcamera(), and drawviewborder().