Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/DRW_render.h
| Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Lines | typedef enum { | ||||
| /** Use that if color is already premult by alpha. */ | /** Use that if color is already premult by alpha. */ | ||||
| DRW_STATE_BLEND_ALPHA_PREMUL = (1 << 19), | DRW_STATE_BLEND_ALPHA_PREMUL = (1 << 19), | ||||
| DRW_STATE_BLEND_ALPHA_UNDER_PREMUL = (1 << 20), | DRW_STATE_BLEND_ALPHA_UNDER_PREMUL = (1 << 20), | ||||
| DRW_STATE_BLEND_OIT = (1 << 21), | DRW_STATE_BLEND_OIT = (1 << 21), | ||||
| DRW_STATE_BLEND_MUL = (1 << 22), | DRW_STATE_BLEND_MUL = (1 << 22), | ||||
| /** Use dual source blending. WARNING: Only one color buffer allowed. */ | /** Use dual source blending. WARNING: Only one color buffer allowed. */ | ||||
| DRW_STATE_BLEND_CUSTOM = (1 << 23), | DRW_STATE_BLEND_CUSTOM = (1 << 23), | ||||
| /* Use a wire thickness of 2.0f. If not set a thickness of 1.0f is used. */ | |||||
| // TODO: we should find a better solution changing values should not flood bitflags */ | |||||
| DRW_STATE_WIRE_MEDIUM = (1 << 25), | |||||
| DRW_STATE_WIRE_THICK = (1 << 26), | |||||
| DRW_STATE_SHADOW_OFFSET = (1 << 27), | DRW_STATE_SHADOW_OFFSET = (1 << 27), | ||||
| DRW_STATE_CLIP_PLANES = (1 << 28), | DRW_STATE_CLIP_PLANES = (1 << 28), | ||||
| DRW_STATE_WIRE_SMOOTH = (1 << 29), | DRW_STATE_WIRE_SMOOTH = (1 << 29), | ||||
| DRW_STATE_FIRST_VERTEX_CONVENTION = (1 << 30), | DRW_STATE_FIRST_VERTEX_CONVENTION = (1 << 30), | ||||
| /** DO NOT USE. Assumed always enabled. Only used internally. */ | /** DO NOT USE. Assumed always enabled. Only used internally. */ | ||||
| DRW_STATE_PROGRAM_POINT_SIZE = (1u << 31), | DRW_STATE_PROGRAM_POINT_SIZE = (1u << 31), | ||||
| } DRWState; | } DRWState; | ||||
| ▲ Show 20 Lines • Show All 329 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 | |||||