Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_exec.c
| Show First 20 Lines • Show All 361 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* Set active view for rendering. */ | /* Set active view for rendering. */ | ||||
| void DRW_view_set_active(DRWView *view) | void DRW_view_set_active(DRWView *view) | ||||
| { | { | ||||
| DST.view_active = (view) ? view : DST.view_default; | DST.view_active = (view) ? view : DST.view_default; | ||||
| } | } | ||||
| const DRWView *DRW_view_get_active(void) | |||||
| { | |||||
| return DST.view_active; | |||||
| } | |||||
| /* Return True if the given BoundSphere intersect the current view frustum */ | /* Return True if the given BoundSphere intersect the current view frustum */ | ||||
| static bool draw_culling_sphere_test(const BoundSphere *frustum_bsphere, | static bool draw_culling_sphere_test(const BoundSphere *frustum_bsphere, | ||||
| const float (*frustum_planes)[4], | const float (*frustum_planes)[4], | ||||
| const BoundSphere *bsphere) | const BoundSphere *bsphere) | ||||
| { | { | ||||
| /* Bypass test if radius is negative. */ | /* Bypass test if radius is negative. */ | ||||
| if (bsphere->radius < 0.0f) { | if (bsphere->radius < 0.0f) { | ||||
| return true; | return true; | ||||
| ▲ Show 20 Lines • Show All 796 Lines • Show Last 20 Lines | |||||