Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_private.h
| Show All 31 Lines | |||||
| # define USE_GEOM_SHADER_WORKAROUND 1 | # define USE_GEOM_SHADER_WORKAROUND 1 | ||||
| #else | #else | ||||
| # define USE_GEOM_SHADER_WORKAROUND 0 | # define USE_GEOM_SHADER_WORKAROUND 0 | ||||
| #endif | #endif | ||||
| /* Needed for eSpaceImage_UVDT_Stretch */ | /* Needed for eSpaceImage_UVDT_Stretch */ | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| /* Forward declarations */ | |||||
| struct ImBuf; | |||||
| typedef struct OVERLAY_FramebufferList { | typedef struct OVERLAY_FramebufferList { | ||||
| struct GPUFrameBuffer *overlay_default_fb; | struct GPUFrameBuffer *overlay_default_fb; | ||||
| struct GPUFrameBuffer *overlay_line_fb; | struct GPUFrameBuffer *overlay_line_fb; | ||||
| struct GPUFrameBuffer *overlay_color_only_fb; | struct GPUFrameBuffer *overlay_color_only_fb; | ||||
| struct GPUFrameBuffer *overlay_in_front_fb; | struct GPUFrameBuffer *overlay_in_front_fb; | ||||
| struct GPUFrameBuffer *overlay_line_in_front_fb; | struct GPUFrameBuffer *overlay_line_in_front_fb; | ||||
| struct GPUFrameBuffer *outlines_prepass_fb; | struct GPUFrameBuffer *outlines_prepass_fb; | ||||
| struct GPUFrameBuffer *outlines_resolve_fb; | struct GPUFrameBuffer *outlines_resolve_fb; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | typedef struct OVERLAY_PassList { | ||||
| DRWPass *edit_text_overlay_ps; | DRWPass *edit_text_overlay_ps; | ||||
| DRWPass *edit_text_darken_ps; | DRWPass *edit_text_darken_ps; | ||||
| DRWPass *edit_text_wire_ps[2]; | DRWPass *edit_text_wire_ps[2]; | ||||
| DRWPass *edit_uv_edges_ps; | DRWPass *edit_uv_edges_ps; | ||||
| DRWPass *edit_uv_verts_ps; | DRWPass *edit_uv_verts_ps; | ||||
| DRWPass *edit_uv_faces_ps; | DRWPass *edit_uv_faces_ps; | ||||
| DRWPass *edit_uv_stretching_ps; | DRWPass *edit_uv_stretching_ps; | ||||
| DRWPass *edit_uv_tiled_image_borders_ps; | DRWPass *edit_uv_tiled_image_borders_ps; | ||||
| DRWPass *edit_uv_stencil_ps; | |||||
| DRWPass *extra_ps[2]; | DRWPass *extra_ps[2]; | ||||
| DRWPass *extra_blend_ps; | DRWPass *extra_blend_ps; | ||||
| DRWPass *extra_centers_ps; | DRWPass *extra_centers_ps; | ||||
| DRWPass *extra_grid_ps; | DRWPass *extra_grid_ps; | ||||
| DRWPass *gpencil_canvas_ps; | DRWPass *gpencil_canvas_ps; | ||||
| DRWPass *facing_ps[2]; | DRWPass *facing_ps[2]; | ||||
| DRWPass *fade_ps[2]; | DRWPass *fade_ps[2]; | ||||
| DRWPass *grid_ps; | DRWPass *grid_ps; | ||||
| ▲ Show 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | struct { | ||||
| int select_mode; | int select_mode; | ||||
| } edit_particle; | } edit_particle; | ||||
| struct { | struct { | ||||
| bool do_uv_overlay; | bool do_uv_overlay; | ||||
| bool do_uv_shadow_overlay; | bool do_uv_shadow_overlay; | ||||
| bool do_uv_stretching_overlay; | bool do_uv_stretching_overlay; | ||||
| bool do_tiled_image_overlay; | bool do_tiled_image_overlay; | ||||
| bool do_tiled_image_border_overlay; | bool do_tiled_image_border_overlay; | ||||
| bool do_stencil_overlay; | |||||
| bool do_faces; | bool do_faces; | ||||
| bool do_face_dots; | bool do_face_dots; | ||||
| float uv_opacity; | float uv_opacity; | ||||
| /* edge drawing */ | /* edge drawing */ | ||||
| OVERLAY_UVLineStyle line_style; | OVERLAY_UVLineStyle line_style; | ||||
| float dash_length; | float dash_length; | ||||
| int do_smooth_wire; | int do_smooth_wire; | ||||
| /* stretching overlay */ | /* stretching overlay */ | ||||
| float aspect[2]; | float aspect[2]; | ||||
| eSpaceImage_UVDT_Stretch draw_type; | eSpaceImage_UVDT_Stretch draw_type; | ||||
| ListBase totals; | ListBase totals; | ||||
| float total_area_ratio; | float total_area_ratio; | ||||
| float total_area_ratio_inv; | float total_area_ratio_inv; | ||||
| /* stencil overlay */ | |||||
| struct Image *stencil_image; | |||||
| struct ImBuf *stencil_ibuf; | |||||
| void * stencil_lock; | |||||
| } edit_uv; | } edit_uv; | ||||
| struct { | struct { | ||||
| bool transparent; | bool transparent; | ||||
| bool show_relations; | bool show_relations; | ||||
| bool do_pose_xray; | bool do_pose_xray; | ||||
| bool do_pose_fade_geom; | bool do_pose_fade_geom; | ||||
| } armature; | } armature; | ||||
| struct { | struct { | ||||
| ▲ Show 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | |||||
| GPUShader *OVERLAY_shader_edit_particle_point(void); | GPUShader *OVERLAY_shader_edit_particle_point(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_edges_get(void); | GPUShader *OVERLAY_shader_edit_uv_edges_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_face_get(void); | GPUShader *OVERLAY_shader_edit_uv_face_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_face_dots_get(void); | GPUShader *OVERLAY_shader_edit_uv_face_dots_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_verts_get(void); | GPUShader *OVERLAY_shader_edit_uv_verts_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_stretching_area_get(void); | GPUShader *OVERLAY_shader_edit_uv_stretching_area_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_stretching_angle_get(void); | GPUShader *OVERLAY_shader_edit_uv_stretching_angle_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_tiled_image_borders_get(void); | GPUShader *OVERLAY_shader_edit_uv_tiled_image_borders_get(void); | ||||
| GPUShader *OVERLAY_shader_edit_uv_stencil_image(void); | |||||
| GPUShader *OVERLAY_shader_extra(bool is_select); | GPUShader *OVERLAY_shader_extra(bool is_select); | ||||
| GPUShader *OVERLAY_shader_extra_groundline(void); | GPUShader *OVERLAY_shader_extra_groundline(void); | ||||
| GPUShader *OVERLAY_shader_extra_wire(bool use_object, bool is_select); | GPUShader *OVERLAY_shader_extra_wire(bool use_object, bool is_select); | ||||
| GPUShader *OVERLAY_shader_extra_loose_point(void); | GPUShader *OVERLAY_shader_extra_loose_point(void); | ||||
| GPUShader *OVERLAY_shader_extra_point(void); | GPUShader *OVERLAY_shader_extra_point(void); | ||||
| GPUShader *OVERLAY_shader_facing(void); | GPUShader *OVERLAY_shader_facing(void); | ||||
| GPUShader *OVERLAY_shader_gpencil_canvas(void); | GPUShader *OVERLAY_shader_gpencil_canvas(void); | ||||
| GPUShader *OVERLAY_shader_grid(void); | GPUShader *OVERLAY_shader_grid(void); | ||||
| Show All 32 Lines | |||||