Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-07 21:30:16 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-22 18:29:25 +0300
commite7d13b8a1da046d7bb78a3c0e21bbb575ed6074e (patch)
tree5af00d1e1e72fb15212decc2448152696ea519b7 /intern/cycles/render/film.h
parent0062d9f58c74e6dd021a3517e0dcba41c414ac97 (diff)
Code refactor: nodify Cycles background and film.
Differential Revision: https://developer.blender.org/D2016
Diffstat (limited to 'intern/cycles/render/film.h')
-rw-r--r--intern/cycles/render/film.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/intern/cycles/render/film.h b/intern/cycles/render/film.h
index 966e00a8d1f..9fa51c51f52 100644
--- a/intern/cycles/render/film.h
+++ b/intern/cycles/render/film.h
@@ -22,6 +22,8 @@
#include "kernel_types.h"
+#include "node.h"
+
CCL_NAMESPACE_BEGIN
class Device;
@@ -44,15 +46,17 @@ public:
bool exposure;
PassType divide_type;
- static void add(PassType type, vector<Pass>& passes);
- static bool equals(const vector<Pass>& A, const vector<Pass>& B);
- static bool contains(const vector<Pass>& passes, PassType);
+ static void add(PassType type, array<Pass>& passes);
+ static bool equals(const array<Pass>& A, const array<Pass>& B);
+ static bool contains(const array<Pass>& passes, PassType);
};
-class Film {
+class Film : public Node {
public:
+ NODE_DECLARE;
+
float exposure;
- vector<Pass> passes;
+ array<Pass> passes;
float pass_alpha_threshold;
FilterType filter_type;
@@ -75,7 +79,7 @@ public:
void device_free(Device *device, DeviceScene *dscene, Scene *scene);
bool modified(const Film& film);
- void tag_passes_update(Scene *scene, const vector<Pass>& passes_);
+ void tag_passes_update(Scene *scene, const array<Pass>& passes_);
void tag_update(Scene *scene);
};