Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/scene.h
| Show All 13 Lines | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef __SCENE_H__ | #ifndef __SCENE_H__ | ||||
| #define __SCENE_H__ | #define __SCENE_H__ | ||||
| #include "bvh/bvh_params.h" | #include "bvh/bvh_params.h" | ||||
| #include "render/film.h" | |||||
| #include "render/image.h" | #include "render/image.h" | ||||
| #include "render/shader.h" | #include "render/shader.h" | ||||
| #include "device/device_memory.h" | #include "device/device_memory.h" | ||||
| #include "util/util_param.h" | #include "util/util_param.h" | ||||
| #include "util/util_string.h" | #include "util/util_string.h" | ||||
| #include "util/util_system.h" | #include "util/util_system.h" | ||||
| ▲ Show 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | public: | ||||
| Integrator *integrator; | Integrator *integrator; | ||||
| /* data lists */ | /* data lists */ | ||||
| vector<Object *> objects; | vector<Object *> objects; | ||||
| vector<Geometry *> geometry; | vector<Geometry *> geometry; | ||||
| vector<Shader *> shaders; | vector<Shader *> shaders; | ||||
| vector<Light *> lights; | vector<Light *> lights; | ||||
| vector<ParticleSystem *> particle_systems; | vector<ParticleSystem *> particle_systems; | ||||
| vector<Pass> passes; | |||||
| /* data managers */ | /* data managers */ | ||||
| ImageManager *image_manager; | ImageManager *image_manager; | ||||
| LightManager *light_manager; | LightManager *light_manager; | ||||
| ShaderManager *shader_manager; | ShaderManager *shader_manager; | ||||
| GeometryManager *geometry_manager; | GeometryManager *geometry_manager; | ||||
| ObjectManager *object_manager; | ObjectManager *object_manager; | ||||
| ParticleSystemManager *particle_system_manager; | ParticleSystemManager *particle_system_manager; | ||||
| Show All 31 Lines | public: | ||||
| bool need_update(); | bool need_update(); | ||||
| bool need_reset(); | bool need_reset(); | ||||
| void reset(); | void reset(); | ||||
| void device_free(); | void device_free(); | ||||
| void collect_statistics(RenderStats *stats); | void collect_statistics(RenderStats *stats); | ||||
| void tag_passes_update(Scene *scene, const vector<Pass> &passes_, bool update_passes = true); | |||||
| int get_aov_offset(string name, bool &is_color); | |||||
| protected: | protected: | ||||
| /* Check if some heavy data worth logging was updated. | /* Check if some heavy data worth logging was updated. | ||||
| * Mainly used to suppress extra annoying logging. | * Mainly used to suppress extra annoying logging. | ||||
| */ | */ | ||||
| bool need_data_update(); | bool need_data_update(); | ||||
| void free_memory(bool final); | void free_memory(bool final); | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __SCENE_H__ */ | #endif /* __SCENE_H__ */ | ||||