Blender  V3.3
object_cull.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __BLENDER_OBJECT_CULL_H__
5 #define __BLENDER_OBJECT_CULL_H__
6 
7 #include "blender/sync.h"
8 #include "util/types.h"
9 
11 
12 class Scene;
13 
15  public:
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, float3 bb[8]);
23  bool test_distance(Scene *scene, 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 
34 
35 #endif /* __BLENDER_OBJECT_CULL_H__ */
struct Object Object
struct Scene Scene
BlenderObjectCulling(Scene *scene, BL::Scene &b_scene)
Definition: object_cull.cpp:13
void init_object(Scene *scene, BL::Object &b_ob)
Definition: object_cull.cpp:40
bool test(Scene *scene, BL::Object &b_ob, Transform &tfm)
Definition: object_cull.cpp:57
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
Scene scene