Blender  V2.93
blender_object_cull.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Blender Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __BLENDER_OBJECT_CULL_H__
18 #define __BLENDER_OBJECT_CULL_H__
19 
20 #include "blender/blender_sync.h"
21 #include "util/util_types.h"
22 
24 
25 class Scene;
26 
28  public:
30 
31  void init_object(Scene *scene, BL::Object &b_ob);
32  bool test(Scene *scene, BL::Object &b_ob, Transform &tfm);
33 
34  private:
35  bool test_camera(Scene *scene, float3 bb[8]);
36  bool test_distance(Scene *scene, float3 bb[8]);
37 
38  bool use_scene_camera_cull_;
39  bool use_camera_cull_;
40  float camera_cull_margin_;
41  bool use_scene_distance_cull_;
42  bool use_distance_cull_;
43  float distance_cull_margin_;
44 };
45 
47 
48 #endif /* __BLENDER_OBJECT_CULL_H__ */
struct Object Object
struct Scene Scene
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)
Scene scene
#define CCL_NAMESPACE_END