Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/DRW_render.h
| Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | |||||
| void DRW_shgroup_uniform_vec3_copy(DRWShadingGroup *shgroup, const char *name, const float *value); | void DRW_shgroup_uniform_vec3_copy(DRWShadingGroup *shgroup, const char *name, const float *value); | ||||
| void DRW_shgroup_uniform_vec4_copy(DRWShadingGroup *shgroup, const char *name, const float *value); | void DRW_shgroup_uniform_vec4_copy(DRWShadingGroup *shgroup, const char *name, const float *value); | ||||
| bool DRW_shgroup_is_empty(DRWShadingGroup *shgroup); | bool DRW_shgroup_is_empty(DRWShadingGroup *shgroup); | ||||
| /* Passes */ | /* Passes */ | ||||
| DRWPass *DRW_pass_create(const char *name, DRWState state); | DRWPass *DRW_pass_create(const char *name, DRWState state); | ||||
| /* TODO Replace with passes inheritance. */ | /* TODO Replace with passes inheritance. */ | ||||
| void DRW_pass_line_width_set(DRWPass *pass, float line_width); | |||||
| void DRW_pass_state_set(DRWPass *pass, DRWState state); | void DRW_pass_state_set(DRWPass *pass, DRWState state); | ||||
| void DRW_pass_state_add(DRWPass *pass, DRWState state); | void DRW_pass_state_add(DRWPass *pass, DRWState state); | ||||
| void DRW_pass_state_remove(DRWPass *pass, DRWState state); | void DRW_pass_state_remove(DRWPass *pass, DRWState state); | ||||
| void DRW_pass_foreach_shgroup(DRWPass *pass, | void DRW_pass_foreach_shgroup(DRWPass *pass, | ||||
| void (*callback)(void *userData, DRWShadingGroup *shgrp), | void (*callback)(void *userData, DRWShadingGroup *shgrp), | ||||
| void *userData); | void *userData); | ||||
| void DRW_pass_sort_shgroup_z(DRWPass *pass); | void DRW_pass_sort_shgroup_z(DRWPass *pass); | ||||
| ▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
| bool DRW_state_is_playback(void); | bool DRW_state_is_playback(void); | ||||
| bool DRW_state_show_text(void); | bool DRW_state_show_text(void); | ||||
| bool DRW_state_draw_support(void); | bool DRW_state_draw_support(void); | ||||
| bool DRW_state_draw_background(void); | bool DRW_state_draw_background(void); | ||||
| /* Avoid too many lookups while drawing */ | /* Avoid too many lookups while drawing */ | ||||
| typedef struct DRWContextState { | typedef struct DRWContextState { | ||||
| struct ARegion *ar; /* 'CTX_wm_region(C)' */ | struct ARegion *ar; /* 'CTX_wm_region(C)' */ | ||||
| struct RegionView3D *rv3d; /* 'CTX_wm_region_view3d(C)' */ | struct RegionView3D *rv3d; /* 'CTX_wm_region_view3d(C)' */ | ||||
| struct View3D *v3d; /* 'CTX_wm_view3d(C)' */ | struct View3D *v3d; /* 'CTX_wm_view3d(C)' */ | ||||
| struct SpaceLink *space_data; /* 'CTX_wm_space_data(C)' */ | |||||
| struct Scene *scene; /* 'CTX_data_scene(C)' */ | struct Scene *scene; /* 'CTX_data_scene(C)' */ | ||||
| struct ViewLayer *view_layer; /* 'CTX_data_view_layer(C)' */ | struct ViewLayer *view_layer; /* 'CTX_data_view_layer(C)' */ | ||||
| /* Use 'object_edit' for edit-mode */ | /* Use 'object_edit' for edit-mode */ | ||||
| struct Object *obact; /* 'OBACT' */ | struct Object *obact; /* 'OBACT' */ | ||||
| struct RenderEngineType *engine_type; | struct RenderEngineType *engine_type; | ||||
| Show All 22 Lines | |||||