Blender V5.0
object_cull.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include "blender/sync.h"
8#include "util/types.h"
9
11
12class Scene;
13
15 public:
16 BlenderObjectCulling(Scene *scene, BL::Scene &b_scene);
17
18 void init_object(Scene *scene, BL::Object &b_ob);
19 bool test(Scene *scene, BL::Object &b_ob, Transform &tfm);
20
21 private:
22 bool test_camera(Scene *scene, const float3 bb[8]);
23 bool test_distance(Scene *scene, const float3 bb[8]);
24
25 bool use_scene_camera_cull_;
26 bool use_camera_cull_;
27 float camera_cull_margin_;
28 bool use_scene_distance_cull_;
29 bool use_distance_cull_;
30 float distance_cull_margin_;
31};
32
BlenderObjectCulling(Scene *scene, BL::Scene &b_scene)
void init_object(Scene *scene, BL::Object &b_ob)
bool test(Scene *scene, BL::Object &b_ob, Transform &tfm)
#define CCL_NAMESPACE_END