Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_exec.c
| Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | void DRW_state_invert_facing(void) | ||||
| SWAP(GLenum, DST.backface, DST.frontface); | SWAP(GLenum, DST.backface, DST.frontface); | ||||
| glFrontFace(DST.frontface); | glFrontFace(DST.frontface); | ||||
| } | } | ||||
| /** | /** | ||||
| * This only works if DRWPasses have been tagged with DRW_STATE_CLIP_PLANES, | * This only works if DRWPasses have been tagged with DRW_STATE_CLIP_PLANES, | ||||
| * and if the shaders have support for it (see usage of gl_ClipDistance). | * and if the shaders have support for it (see usage of gl_ClipDistance). | ||||
| * Be sure to call DRW_state_clip_planes_reset() after you finish drawing. | * Be sure to call DRW_state_clip_planes_reset() after you finish drawing. | ||||
| **/ | */ | ||||
| void DRW_state_clip_planes_len_set(uint plane_len) | void DRW_state_clip_planes_len_set(uint plane_len) | ||||
| { | { | ||||
| BLI_assert(plane_len <= MAX_CLIP_PLANES); | BLI_assert(plane_len <= MAX_CLIP_PLANES); | ||||
| DST.clip_planes_len = plane_len; | DST.clip_planes_len = plane_len; | ||||
| } | } | ||||
| void DRW_state_clip_planes_reset(void) | void DRW_state_clip_planes_reset(void) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 941 Lines • Show Last 20 Lines | |||||