Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/scene.h
| Show All 20 Lines | |||||
| #include "render/film.h" | #include "render/film.h" | ||||
| #include "render/image.h" | #include "render/image.h" | ||||
| #include "render/shader.h" | #include "render/shader.h" | ||||
| #include "device/device.h" | #include "device/device.h" | ||||
| #include "device/device_memory.h" | #include "device/device_memory.h" | ||||
| #include "util/util_api.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" | ||||
| #include "util/util_texture.h" | #include "util/util_texture.h" | ||||
| #include "util/util_thread.h" | #include "util/util_thread.h" | ||||
| #include "util/util_types.h" | #include "util/util_types.h" | ||||
| #include "util/util_vector.h" | #include "util/util_vector.h" | ||||
| ▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | int curve_subdivisions() | ||||
| /* Matching the tesselation rate limit in Embree. */ | /* Matching the tesselation rate limit in Embree. */ | ||||
| return clamp(1 << hair_subdivisions, 1, 16); | return clamp(1 << hair_subdivisions, 1, 16); | ||||
| } | } | ||||
| }; | }; | ||||
| /* Scene */ | /* Scene */ | ||||
| class Scene : public NodeOwner { | class Scene : public NodeOwner { | ||||
| public: | private: | ||||
| /* Optional name. Is used for logging and reporting. */ | /* Optional name. Is used for logging and reporting. */ | ||||
| string name; | GET_SET(string, name) | ||||
| /* data */ | /* data */ | ||||
| BVH *bvh; | GET_SET(BVH *, bvh) | ||||
| Camera *camera; | GET_SET(Camera *, camera) | ||||
| Camera *dicing_camera; | GET_SET(Camera *, dicing_camera) | ||||
| LookupTables *lookup_tables; | GET(LookupTables *, lookup_tables) | ||||
| Film *film; | GET(Film *, film) | ||||
| Background *background; | GET(Background *, background) | ||||
| Integrator *integrator; | GET(Integrator *, integrator) | ||||
| /* data lists */ | /* data lists */ | ||||
| vector<Object *> objects; | GET(vector<Object *>, objects) | ||||
| vector<Geometry *> geometry; | GET(vector<Geometry *>, geometry) | ||||
| vector<Shader *> shaders; | GET(vector<Shader *>, shaders) | ||||
| vector<Light *> lights; | GET(vector<Light *>, lights) | ||||
| vector<ParticleSystem *> particle_systems; | GET(vector<ParticleSystem *>, particle_systems) | ||||
| vector<Pass> passes; | GET(vector<Pass>, passes) | ||||
| /* data managers */ | /* data managers */ | ||||
| ImageManager *image_manager; | GET(ImageManager *, image_manager) | ||||
| LightManager *light_manager; | GET(LightManager *, light_manager) | ||||
| ShaderManager *shader_manager; | GET(ShaderManager *, shader_manager) | ||||
| GeometryManager *geometry_manager; | GET(GeometryManager *, geometry_manager) | ||||
| ObjectManager *object_manager; | GET(ObjectManager *, object_manager) | ||||
| ParticleSystemManager *particle_system_manager; | GET(ParticleSystemManager *, particle_system_manager) | ||||
| BakeManager *bake_manager; | GET(BakeManager *, bake_manager) | ||||
| /* default shaders */ | /* default shaders */ | ||||
| Shader *default_surface; | GET_SET(Shader *, default_surface) | ||||
| Shader *default_volume; | GET_SET(Shader *, default_volume) | ||||
| Shader *default_light; | GET_SET(Shader *, default_light) | ||||
| Shader *default_background; | GET_SET(Shader *, default_background) | ||||
| Shader *default_empty; | GET_SET(Shader *, default_empty) | ||||
| /* device */ | /* device */ | ||||
| Device *device; | Device *device; | ||||
| DeviceScene dscene; | GET(DeviceScene, dscene) | ||||
| /* parameters */ | /* parameters */ | ||||
| SceneParams params; | GET(SceneParams, params) | ||||
| /* mutex must be locked manually by callers */ | /* mutex must be locked manually by callers */ | ||||
| thread_mutex mutex; | GET(thread_mutex, mutex) | ||||
| /* scene update statistics */ | /* scene update statistics */ | ||||
| SceneUpdateStats *update_stats; | GET(SceneUpdateStats *, update_stats) | ||||
| public: | |||||
| Scene(const SceneParams ¶ms, Device *device); | Scene(const SceneParams ¶ms, Device *device); | ||||
| ~Scene(); | ~Scene(); | ||||
| void device_update(Device *device, Progress &progress); | void device_update(Device *device, Progress &progress); | ||||
| bool need_global_attribute(AttributeStandard std); | bool need_global_attribute(AttributeStandard std); | ||||
| void need_global_attributes(AttributeRequestSet &attributes); | void need_global_attributes(AttributeRequestSet &attributes); | ||||
| ▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines | |||||