Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_private.h
| Show All 31 Lines | |||||
| 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; | ||||
| struct GPUFrameBuffer *retopology_front_depth_fb; | |||||
| struct GPUFrameBuffer *retopology_back_depth_fb; | |||||
| } OVERLAY_FramebufferList; | } OVERLAY_FramebufferList; | ||||
| typedef struct OVERLAY_TextureList { | typedef struct OVERLAY_TextureList { | ||||
| struct GPUTexture *temp_depth_tx; | struct GPUTexture *temp_depth_tx; | ||||
| struct GPUTexture *dummy_depth_tx; | struct GPUTexture *dummy_depth_tx; | ||||
| struct GPUTexture *outlines_id_tx; | struct GPUTexture *outlines_id_tx; | ||||
| struct GPUTexture *overlay_color_tx; | struct GPUTexture *overlay_color_tx; | ||||
| struct GPUTexture *overlay_line_tx; | struct GPUTexture *overlay_line_tx; | ||||
| struct GPUTexture *retopology_depth_back_tx; | |||||
| struct GPUTexture *retopology_depth_front_tx; | |||||
| } OVERLAY_TextureList; | } OVERLAY_TextureList; | ||||
| #define NOT_IN_FRONT 0 | #define NOT_IN_FRONT 0 | ||||
| #define IN_FRONT 1 | #define IN_FRONT 1 | ||||
| typedef struct OVERLAY_PassList { | typedef struct OVERLAY_PassList { | ||||
| DRWPass *antialiasing_ps; | DRWPass *antialiasing_ps; | ||||
| DRWPass *armature_ps[2]; | DRWPass *armature_ps[2]; | ||||
| Show All 32 Lines | typedef struct OVERLAY_PassList { | ||||
| DRWPass *outlines_detect_ps; | DRWPass *outlines_detect_ps; | ||||
| DRWPass *outlines_resolve_ps; | DRWPass *outlines_resolve_ps; | ||||
| DRWPass *paint_color_ps; | DRWPass *paint_color_ps; | ||||
| DRWPass *paint_overlay_ps; | DRWPass *paint_overlay_ps; | ||||
| DRWPass *particle_ps; | DRWPass *particle_ps; | ||||
| DRWPass *sculpt_mask_ps; | DRWPass *sculpt_mask_ps; | ||||
| DRWPass *wireframe_ps; | DRWPass *wireframe_ps; | ||||
| DRWPass *wireframe_xray_ps; | DRWPass *wireframe_xray_ps; | ||||
| /* Passes for retopology */ | |||||
| DRWPass *retopology_depth_back_pass; | |||||
| DRWPass *retopology_depth_front_pass; | |||||
| DRWPass *retopology_depth_merge_pass; | |||||
| DRWPass *retopology_color_pass; | |||||
| } OVERLAY_PassList; | } OVERLAY_PassList; | ||||
| /* Data used by GLSL shader. To be used as UBO. */ | /* Data used by GLSL shader. To be used as UBO. */ | ||||
| typedef struct OVERLAY_ShadingData { | typedef struct OVERLAY_ShadingData { | ||||
| /** Grid */ | /** Grid */ | ||||
| float grid_axes[3], grid_distance; | float grid_axes[3], grid_distance; | ||||
| float zplane_axes[3], grid_mesh_size; | float zplane_axes[3], grid_mesh_size; | ||||
| float grid_steps[8]; | float grid_steps[8]; | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | typedef struct OVERLAY_PrivateData { | ||||
| DRWShadingGroup *edit_mesh_faces_cage_grp[2]; | DRWShadingGroup *edit_mesh_faces_cage_grp[2]; | ||||
| DRWShadingGroup *edit_mesh_verts_grp[2]; | DRWShadingGroup *edit_mesh_verts_grp[2]; | ||||
| DRWShadingGroup *edit_mesh_edges_grp[2]; | DRWShadingGroup *edit_mesh_edges_grp[2]; | ||||
| DRWShadingGroup *edit_mesh_facedots_grp[2]; | DRWShadingGroup *edit_mesh_facedots_grp[2]; | ||||
| DRWShadingGroup *edit_mesh_skin_roots_grp[2]; | DRWShadingGroup *edit_mesh_skin_roots_grp[2]; | ||||
| DRWShadingGroup *edit_mesh_normals_grp; | DRWShadingGroup *edit_mesh_normals_grp; | ||||
| DRWShadingGroup *edit_mesh_analysis_grp; | DRWShadingGroup *edit_mesh_analysis_grp; | ||||
| DRWShadingGroup *edit_mesh_weight_grp; | DRWShadingGroup *edit_mesh_weight_grp; | ||||
| DRWShadingGroup *retopology_color_grp; | |||||
| DRWShadingGroup *retopology_depth_back_grp; | |||||
| DRWShadingGroup *retopology_depth_front_grp; | |||||
| DRWShadingGroup *edit_particle_strand_grp; | DRWShadingGroup *edit_particle_strand_grp; | ||||
| DRWShadingGroup *edit_particle_point_grp; | DRWShadingGroup *edit_particle_point_grp; | ||||
| DRWShadingGroup *edit_text_overlay_grp; | DRWShadingGroup *edit_text_overlay_grp; | ||||
| DRWShadingGroup *edit_text_wire_grp[2]; | DRWShadingGroup *edit_text_wire_grp[2]; | ||||
| DRWShadingGroup *extra_grid_grp; | DRWShadingGroup *extra_grid_grp; | ||||
| DRWShadingGroup *facing_grp; | DRWShadingGroup *facing_grp; | ||||
| DRWShadingGroup *motion_path_lines_grp; | DRWShadingGroup *motion_path_lines_grp; | ||||
| DRWShadingGroup *motion_path_points_grp; | DRWShadingGroup *motion_path_points_grp; | ||||
| ▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | typedef struct OVERLAY_PrivateData { | ||||
| struct { | struct { | ||||
| bool enabled; | bool enabled; | ||||
| } antialiasing; | } antialiasing; | ||||
| struct { | struct { | ||||
| bool show_handles; | bool show_handles; | ||||
| } edit_curve; | } edit_curve; | ||||
| struct { | struct { | ||||
| bool enabled; | |||||
| } retopology; | |||||
| struct { | |||||
| int ghost_ob; | int ghost_ob; | ||||
| int edit_ob; | int edit_ob; | ||||
| bool do_zbufclip; | bool do_zbufclip; | ||||
| bool do_faces; | bool do_faces; | ||||
| bool do_edges; | bool do_edges; | ||||
| bool select_vert; | bool select_vert; | ||||
| bool select_face; | bool select_face; | ||||
| bool select_edge; | bool select_edge; | ||||
| ▲ Show 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | void OVERLAY_extra_wire(OVERLAY_ExtraCallBuffers *cb, | ||||
| const float mat[4][4], | const float mat[4][4], | ||||
| const float color[4]); | const float color[4]); | ||||
| void OVERLAY_facing_init(OVERLAY_Data *vedata); | void OVERLAY_facing_init(OVERLAY_Data *vedata); | ||||
| void OVERLAY_facing_cache_init(OVERLAY_Data *vedata); | void OVERLAY_facing_cache_init(OVERLAY_Data *vedata); | ||||
| void OVERLAY_facing_cache_populate(OVERLAY_Data *vedata, Object *ob); | void OVERLAY_facing_cache_populate(OVERLAY_Data *vedata, Object *ob); | ||||
| void OVERLAY_facing_draw(OVERLAY_Data *vedata); | void OVERLAY_facing_draw(OVERLAY_Data *vedata); | ||||
| void OVERLAY_retopology_init(OVERLAY_Data *vedata); | |||||
| void OVERLAY_retopology_cache_init(OVERLAY_Data *vedata); | |||||
| void OVERLAY_retopology_cache_populate(OVERLAY_Data *vedata, Object *ob); | |||||
| void OVERLAY_retopology_draw(OVERLAY_Data *vedata); | |||||
| void OVERLAY_grid_init(OVERLAY_Data *vedata); | void OVERLAY_grid_init(OVERLAY_Data *vedata); | ||||
| void OVERLAY_grid_cache_init(OVERLAY_Data *vedata); | void OVERLAY_grid_cache_init(OVERLAY_Data *vedata); | ||||
| void OVERLAY_grid_draw(OVERLAY_Data *vedata); | void OVERLAY_grid_draw(OVERLAY_Data *vedata); | ||||
| void OVERLAY_image_init(OVERLAY_Data *vedata); | void OVERLAY_image_init(OVERLAY_Data *vedata); | ||||
| void OVERLAY_image_cache_init(OVERLAY_Data *vedata); | void OVERLAY_image_cache_init(OVERLAY_Data *vedata); | ||||
| void OVERLAY_image_camera_cache_populate(OVERLAY_Data *vedata, Object *ob); | void OVERLAY_image_camera_cache_populate(OVERLAY_Data *vedata, Object *ob); | ||||
| void OVERLAY_image_empty_cache_populate(OVERLAY_Data *vedata, Object *ob); | void OVERLAY_image_empty_cache_populate(OVERLAY_Data *vedata, Object *ob); | ||||
| ▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
| GPUShader *OVERLAY_shader_paint_face(void); | GPUShader *OVERLAY_shader_paint_face(void); | ||||
| GPUShader *OVERLAY_shader_paint_point(void); | GPUShader *OVERLAY_shader_paint_point(void); | ||||
| GPUShader *OVERLAY_shader_paint_texture(void); | GPUShader *OVERLAY_shader_paint_texture(void); | ||||
| GPUShader *OVERLAY_shader_paint_vertcol(void); | GPUShader *OVERLAY_shader_paint_vertcol(void); | ||||
| GPUShader *OVERLAY_shader_paint_weight(void); | GPUShader *OVERLAY_shader_paint_weight(void); | ||||
| GPUShader *OVERLAY_shader_paint_wire(void); | GPUShader *OVERLAY_shader_paint_wire(void); | ||||
| GPUShader *OVERLAY_shader_particle_dot(void); | GPUShader *OVERLAY_shader_particle_dot(void); | ||||
| GPUShader *OVERLAY_shader_particle_shape(void); | GPUShader *OVERLAY_shader_particle_shape(void); | ||||
| GPUShader *OVERLAY_shader_retopology_depth_merge(void); | |||||
| GPUShader *OVERLAY_shader_retopology_face(void); | |||||
| GPUShader *OVERLAY_shader_sculpt_mask(void); | GPUShader *OVERLAY_shader_sculpt_mask(void); | ||||
| GPUShader *OVERLAY_shader_volume_velocity(bool use_needle); | GPUShader *OVERLAY_shader_volume_velocity(bool use_needle); | ||||
| GPUShader *OVERLAY_shader_wireframe(void); | GPUShader *OVERLAY_shader_wireframe(void); | ||||
| GPUShader *OVERLAY_shader_wireframe_select(void); | GPUShader *OVERLAY_shader_wireframe_select(void); | ||||
| OVERLAY_InstanceFormats *OVERLAY_shader_instance_formats_get(void); | OVERLAY_InstanceFormats *OVERLAY_shader_instance_formats_get(void); | ||||
| void OVERLAY_shader_free(void); | void OVERLAY_shader_free(void); | ||||
| #endif /* __OVERLAY_PRIVATE_H__ */ | #endif /* __OVERLAY_PRIVATE_H__ */ | ||||