Blender V4.3
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#ifndef __BLENDER_OBJECT_CULL_H__
6#define __BLENDER_OBJECT_CULL_H__
7
8#include "blender/sync.h"
9#include "util/types.h"
10
12
13class Scene;
14
16 public:
17 BlenderObjectCulling(Scene *scene, BL::Scene &b_scene);
18
19 void init_object(Scene *scene, BL::Object &b_ob);
20 bool test(Scene *scene, BL::Object &b_ob, Transform &tfm);
21
22 private:
23 bool test_camera(Scene *scene, float3 bb[8]);
24 bool test_distance(Scene *scene, float3 bb[8]);
25
26 bool use_scene_camera_cull_;
27 bool use_camera_cull_;
28 float camera_cull_margin_;
29 bool use_scene_distance_cull_;
30 bool use_distance_cull_;
31 float distance_cull_margin_;
32};
33
35
36#endif /* __BLENDER_OBJECT_CULL_H__ */
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