Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_intern.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| struct DerivedMesh; | struct DerivedMesh; | ||||
| struct Object; | struct Object; | ||||
| struct SmokeDomainSettings; | struct SmokeDomainSettings; | ||||
| struct bAnimVizSettings; | struct bAnimVizSettings; | ||||
| struct bContext; | struct bContext; | ||||
| struct bMotionPath; | struct bMotionPath; | ||||
| struct bPoseChannel; | struct bPoseChannel; | ||||
| struct Mesh; | struct Mesh; | ||||
| struct SceneLayer; | struct ViewLayer; | ||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| struct wmKeyConfig; | struct wmKeyConfig; | ||||
| struct wmManipulatorGroupType; | struct wmManipulatorGroupType; | ||||
| struct wmManipulatorType; | struct wmManipulatorType; | ||||
| struct wmWindowManager; | struct wmWindowManager; | ||||
| /* drawing flags: */ | /* drawing flags: */ | ||||
| enum { | enum { | ||||
| ▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | void draw_motion_path_instance(Scene *scene, | ||||
| struct Object *ob, struct bPoseChannel *pchan, | struct Object *ob, struct bPoseChannel *pchan, | ||||
| struct bAnimVizSettings *avs, struct bMotionPath *mpath); | struct bAnimVizSettings *avs, struct bMotionPath *mpath); | ||||
| void draw_motion_paths_cleanup(View3D *v3d); | void draw_motion_paths_cleanup(View3D *v3d); | ||||
| /* drawobject.c */ | /* drawobject.c */ | ||||
| void draw_object( | void draw_object( | ||||
| const struct EvaluationContext *eval_ctx, Scene *scene, struct SceneLayer *sl, struct ARegion *ar, View3D *v3d, | const struct EvaluationContext *eval_ctx, Scene *scene, struct ViewLayer *sl, struct ARegion *ar, View3D *v3d, | ||||
| struct Base *base, const short dflag); | struct Base *base, const short dflag); | ||||
| void draw_object_select( | void draw_object_select( | ||||
| const struct EvaluationContext *eval_ctx, Scene *scene, struct SceneLayer *sl, struct ARegion *ar, View3D *v3d, | const struct EvaluationContext *eval_ctx, Scene *scene, struct ViewLayer *sl, struct ARegion *ar, View3D *v3d, | ||||
| Base *base, const short dflag); | Base *base, const short dflag); | ||||
| void draw_mesh_object_outline(View3D *v3d, Object *ob, struct DerivedMesh *dm, const unsigned char ob_wire_col[4]); | void draw_mesh_object_outline(View3D *v3d, Object *ob, struct DerivedMesh *dm, const unsigned char ob_wire_col[4]); | ||||
| bool draw_glsl_material(Scene *scene, struct SceneLayer *sl, struct Object *ob, View3D *v3d, const char dt); | bool draw_glsl_material(Scene *scene, struct ViewLayer *sl, struct Object *ob, View3D *v3d, const char dt); | ||||
| void draw_object_instance(const struct EvaluationContext *eval_ctx, Scene *scene, struct SceneLayer *sl, View3D *v3d, RegionView3D *rv3d, struct Object *ob, const char dt, int outline, const float wire_col[4]); | void draw_object_instance(const struct EvaluationContext *eval_ctx, Scene *scene, struct ViewLayer *sl, View3D *v3d, RegionView3D *rv3d, struct Object *ob, const char dt, int outline, const float wire_col[4]); | ||||
| void draw_object_backbufsel(const struct EvaluationContext *eval_ctx, Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob); | void draw_object_backbufsel(const struct EvaluationContext *eval_ctx, Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob); | ||||
| void draw_object_wire_color(Scene *scene, struct SceneLayer *, Base *base, unsigned char r_ob_wire_col[4]); | void draw_object_wire_color(Scene *scene, struct ViewLayer *, Base *base, unsigned char r_ob_wire_col[4]); | ||||
| void drawaxes(const float viewmat_local[4][4], float size, char drawtype, const unsigned char color[4]); | void drawaxes(const float viewmat_local[4][4], float size, char drawtype, const unsigned char color[4]); | ||||
| void drawlamp(View3D *v3d, RegionView3D *rv3d, Base *base, | void drawlamp(View3D *v3d, RegionView3D *rv3d, Base *base, | ||||
| const char dt, const short dflag, const unsigned char ob_wire_col[4], | const char dt, const short dflag, const unsigned char ob_wire_col[4], | ||||
| const bool is_obact); | const bool is_obact); | ||||
| void drawcamera(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, | void drawcamera(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, | ||||
| const short dflag, const unsigned char ob_wire_col[4]); | const short dflag, const unsigned char ob_wire_col[4]); | ||||
| void drawspeaker(const unsigned char ob_wire_col[3]); | void drawspeaker(const unsigned char ob_wire_col[3]); | ||||
| void draw_bounding_volume(struct Object *ob, char type, const unsigned char ob_wire_col[4]); | void draw_bounding_volume(struct Object *ob, char type, const unsigned char ob_wire_col[4]); | ||||
| Show All 14 Lines | enum { | ||||
| V3D_CACHE_TEXT_GLOBALSPACE = (1 << 3), | V3D_CACHE_TEXT_GLOBALSPACE = (1 << 3), | ||||
| V3D_CACHE_TEXT_LOCALCLIP = (1 << 4) | V3D_CACHE_TEXT_LOCALCLIP = (1 << 4) | ||||
| }; | }; | ||||
| int view3d_effective_drawtype(const struct View3D *v3d); | int view3d_effective_drawtype(const struct View3D *v3d); | ||||
| /* drawarmature.c */ | /* drawarmature.c */ | ||||
| bool draw_armature( | bool draw_armature( | ||||
| const struct EvaluationContext *eval_ctx, Scene *scene, struct SceneLayer *sl, View3D *v3d, ARegion *ar, Base *base, | const struct EvaluationContext *eval_ctx, Scene *scene, struct ViewLayer *sl, View3D *v3d, ARegion *ar, Base *base, | ||||
| const short dt, const short dflag, const unsigned char ob_wire_col[4], | const short dt, const short dflag, const unsigned char ob_wire_col[4], | ||||
| const bool is_outline); | const bool is_outline); | ||||
| /* drawmesh.c */ | /* drawmesh.c */ | ||||
| void draw_mesh_textured(Scene *scene, struct SceneLayer *sl, View3D *v3d, RegionView3D *rv3d, | void draw_mesh_textured(Scene *scene, struct ViewLayer *sl, View3D *v3d, RegionView3D *rv3d, | ||||
| struct Object *ob, struct DerivedMesh *dm, const int draw_flags); | struct Object *ob, struct DerivedMesh *dm, const int draw_flags); | ||||
| void draw_mesh_face_select( | void draw_mesh_face_select( | ||||
| struct RegionView3D *rv3d, struct Mesh *me, struct DerivedMesh *dm, | struct RegionView3D *rv3d, struct Mesh *me, struct DerivedMesh *dm, | ||||
| bool draw_select_edges); | bool draw_select_edges); | ||||
| void draw_mesh_paint_weight_faces(struct DerivedMesh *dm, const bool do_light, | void draw_mesh_paint_weight_faces(struct DerivedMesh *dm, const bool do_light, | ||||
| void *facemask_cb, void *user_data); | void *facemask_cb, void *user_data); | ||||
| void draw_mesh_paint_vcolor_faces(struct DerivedMesh *dm, const bool use_light, | void draw_mesh_paint_vcolor_faces(struct DerivedMesh *dm, const bool use_light, | ||||
| void *facemask_cb, void *user_data, | void *facemask_cb, void *user_data, | ||||
| Show All 15 Lines | void ED_view3d_draw_depth( | ||||
| const struct EvaluationContext *eval_ctx, struct Depsgraph *graph, | const struct EvaluationContext *eval_ctx, struct Depsgraph *graph, | ||||
| struct ARegion *ar, View3D *v3d, bool alphaoverride); | struct ARegion *ar, View3D *v3d, bool alphaoverride); | ||||
| /* view3d_draw_legacy.c */ | /* view3d_draw_legacy.c */ | ||||
| void view3d_main_region_draw_legacy(const struct bContext *C, struct ARegion *ar); | void view3d_main_region_draw_legacy(const struct bContext *C, struct ARegion *ar); | ||||
| void ED_view3d_draw_depth_gpencil(const struct EvaluationContext *eval_ctx, Scene *scene, ARegion *ar, View3D *v3d); | void ED_view3d_draw_depth_gpencil(const struct EvaluationContext *eval_ctx, Scene *scene, ARegion *ar, View3D *v3d); | ||||
| void ED_view3d_draw_select_loop( | void ED_view3d_draw_select_loop( | ||||
| const struct EvaluationContext *eval_ctx, ViewContext *vc, Scene *scene, struct SceneLayer *sl, View3D *v3d, ARegion *ar, | const struct EvaluationContext *eval_ctx, ViewContext *vc, Scene *scene, struct ViewLayer *sl, View3D *v3d, ARegion *ar, | ||||
| bool use_obedit_skip, bool use_nearest); | bool use_obedit_skip, bool use_nearest); | ||||
| void ED_view3d_draw_depth_loop( | void ED_view3d_draw_depth_loop( | ||||
| const struct EvaluationContext *eval_ctx, Scene *scene, ARegion *ar, View3D *v3d); | const struct EvaluationContext *eval_ctx, Scene *scene, ARegion *ar, View3D *v3d); | ||||
| void view3d_draw_bgpic_test(Scene *scene, ARegion *ar, View3D *v3d, | void view3d_draw_bgpic_test(Scene *scene, ARegion *ar, View3D *v3d, | ||||
| const bool do_foreground, const bool do_camera_frame); | const bool do_foreground, const bool do_camera_frame); | ||||
| ▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | |||||
| * any direction it starts to fail */ | * any direction it starts to fail */ | ||||
| #define VIEW3D_CAMERA_BORDER_HACK | #define VIEW3D_CAMERA_BORDER_HACK | ||||
| #ifdef VIEW3D_CAMERA_BORDER_HACK | #ifdef VIEW3D_CAMERA_BORDER_HACK | ||||
| extern unsigned char view3d_camera_border_hack_col[3]; | extern unsigned char view3d_camera_border_hack_col[3]; | ||||
| extern bool view3d_camera_border_hack_test; | extern bool view3d_camera_border_hack_test; | ||||
| #endif | #endif | ||||
| /* temporary for legacy viewport to work */ | /* temporary for legacy viewport to work */ | ||||
| void VP_legacy_drawcursor(Scene *scene, struct SceneLayer *sl, ARegion *ar, View3D *v3d); | void VP_legacy_drawcursor(Scene *scene, struct ViewLayer *sl, ARegion *ar, View3D *v3d); | ||||
| void VP_legacy_draw_view_axis(RegionView3D *rv3d, rcti *rect); | void VP_legacy_draw_view_axis(RegionView3D *rv3d, rcti *rect); | ||||
| void VP_legacy_draw_viewport_name(ARegion *ar, View3D *v3d, rcti *rect); | void VP_legacy_draw_viewport_name(ARegion *ar, View3D *v3d, rcti *rect); | ||||
| void VP_legacy_draw_selected_name(Scene *scene, Object *ob, rcti *rect); | void VP_legacy_draw_selected_name(Scene *scene, Object *ob, rcti *rect); | ||||
| void VP_legacy_drawgrid(UnitSettings *unit, ARegion *ar, View3D *v3d, const char **grid_unit); | void VP_legacy_drawgrid(UnitSettings *unit, ARegion *ar, View3D *v3d, const char **grid_unit); | ||||
| void VP_legacy_drawfloor(Scene *scene, View3D *v3d, const char **grid_unit, bool write_depth); | void VP_legacy_drawfloor(Scene *scene, View3D *v3d, const char **grid_unit, bool write_depth); | ||||
| void VP_legacy_view3d_main_region_setup_view(const struct EvaluationContext *eval_ctx, Scene *scene, View3D *v3d, ARegion *ar, float viewmat[4][4], float winmat[4][4]); | void VP_legacy_view3d_main_region_setup_view(const struct EvaluationContext *eval_ctx, Scene *scene, View3D *v3d, ARegion *ar, float viewmat[4][4], float winmat[4][4]); | ||||
| bool VP_legacy_view3d_stereo3d_active(struct wmWindow *win, Scene *scene, View3D *v3d, RegionView3D *rv3d); | bool VP_legacy_view3d_stereo3d_active(struct wmWindow *win, Scene *scene, View3D *v3d, RegionView3D *rv3d); | ||||
| void VP_legacy_view3d_stereo3d_setup(const struct EvaluationContext *eval_ctx, Scene *scene, View3D *v3d, ARegion *ar); | void VP_legacy_view3d_stereo3d_setup(const struct EvaluationContext *eval_ctx, Scene *scene, View3D *v3d, ARegion *ar); | ||||
| void draw_dupli_objects(const struct EvaluationContext *eval_ctx, Scene *scene, SceneLayer *sl, ARegion *ar, View3D *v3d, Base *base); | void draw_dupli_objects(const struct EvaluationContext *eval_ctx, Scene *scene, ViewLayer *sl, ARegion *ar, View3D *v3d, Base *base); | ||||
| bool VP_legacy_use_depth(Scene *scene, View3D *v3d); | bool VP_legacy_use_depth(Scene *scene, View3D *v3d); | ||||
| void VP_drawviewborder(Scene *scene, ARegion *ar, View3D *v3d); | void VP_drawviewborder(Scene *scene, ARegion *ar, View3D *v3d); | ||||
| void VP_drawrenderborder(ARegion *ar, View3D *v3d); | void VP_drawrenderborder(ARegion *ar, View3D *v3d); | ||||
| void VP_view3d_draw_background_none(void); | void VP_view3d_draw_background_none(void); | ||||
| void VP_view3d_draw_background_world(Scene *scene, RegionView3D *rv3d); | void VP_view3d_draw_background_world(Scene *scene, RegionView3D *rv3d); | ||||
| void VP_view3d_main_region_clear(Scene *scene, View3D *v3d, ARegion *ar); | void VP_view3d_main_region_clear(Scene *scene, View3D *v3d, ARegion *ar); | ||||
| /* temporary legacy calls, only when there is a switch between new/old draw calls */ | /* temporary legacy calls, only when there is a switch between new/old draw calls */ | ||||
| Show All 9 Lines | |||||