Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/DRW_render.h
| Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * \warning Only use with Shaders that have INSTANCED_ATTR defined. | * \warning Only use with Shaders that have INSTANCED_ATTR defined. | ||||
| */ | */ | ||||
| void DRW_shgroup_call_instances_with_attrs(DRWShadingGroup *shgroup, | void DRW_shgroup_call_instances_with_attrs(DRWShadingGroup *shgroup, | ||||
| Object *ob, | Object *ob, | ||||
| struct GPUBatch *geom, | struct GPUBatch *geom, | ||||
| struct GPUBatch *inst_attributes); | struct GPUBatch *inst_attributes); | ||||
| void DRW_shgroup_call_sculpt(DRWShadingGroup *sh, Object *ob, bool wire, bool mask); | void DRW_shgroup_call_sculpt(DRWShadingGroup *shgroup, | ||||
| void DRW_shgroup_call_sculpt_with_materials(DRWShadingGroup **sh, int num_sh, Object *ob); | Object *ob, | ||||
| bool use_wire, | |||||
| bool use_mask, | |||||
| bool use_fset, | |||||
| bool use_color, | |||||
| bool use_uv); | |||||
| void DRW_shgroup_call_sculpt_with_materials(DRWShadingGroup **shgroups, | |||||
| struct GPUMaterial **gpumats, | |||||
| int num_shgroups, | |||||
| Object *ob); | |||||
| DRWCallBuffer *DRW_shgroup_call_buffer(DRWShadingGroup *shgroup, | DRWCallBuffer *DRW_shgroup_call_buffer(DRWShadingGroup *shgroup, | ||||
| struct GPUVertFormat *format, | struct GPUVertFormat *format, | ||||
| GPUPrimType prim_type); | GPUPrimType prim_type); | ||||
| DRWCallBuffer *DRW_shgroup_call_buffer_instance(DRWShadingGroup *shgroup, | DRWCallBuffer *DRW_shgroup_call_buffer_instance(DRWShadingGroup *shgroup, | ||||
| struct GPUVertFormat *format, | struct GPUVertFormat *format, | ||||
| struct GPUBatch *geom); | struct GPUBatch *geom); | ||||
| ▲ Show 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | typedef struct DRWContextState { | ||||
| /* Cache: initialized by 'drw_context_state_init'. */ | /* Cache: initialized by 'drw_context_state_init'. */ | ||||
| struct Object *object_pose; | struct Object *object_pose; | ||||
| struct Object *object_edit; | struct Object *object_edit; | ||||
| } DRWContextState; | } DRWContextState; | ||||
| const DRWContextState *DRW_context_state_get(void); | const DRWContextState *DRW_context_state_get(void); | ||||
| struct DRW_Attributes; | |||||
| struct DRW_MeshCDMask; | |||||
| void DRW_mesh_batch_cache_get_attributes(struct Object *object, | |||||
| struct Mesh *me, | |||||
| struct DRW_Attributes **r_attrs, | |||||
| struct DRW_MeshCDMask **r_cd_needed); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||