summaryrefslogtreecommitdiff
path: root/Runtime/Camera/Renderable.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Camera/Renderable.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Camera/Renderable.h')
-rw-r--r--Runtime/Camera/Renderable.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Runtime/Camera/Renderable.h b/Runtime/Camera/Renderable.h
new file mode 100644
index 0000000..ed56577
--- /dev/null
+++ b/Runtime/Camera/Renderable.h
@@ -0,0 +1,30 @@
+#ifndef RENDERABLE_H
+#define RENDERABLE_H
+
+class RenderTexture;
+namespace Unity { class Component; }
+struct CullResults;
+
+class Renderable {
+public:
+ virtual void RenderRenderable (const CullResults& cullResults) = 0;
+};
+
+typedef void RenderImageFilterFunc (Unity::Component* component, RenderTexture* source, RenderTexture* dest);
+
+struct ImageFilter
+{
+ Unity::Component* component;
+ RenderImageFilterFunc* renderFunc;
+
+ bool transformsToLDR;
+ bool afterOpaque;
+
+ ImageFilter (Unity::Component* inComponent, RenderImageFilterFunc* inRenderFunc, bool inLDR, bool inAfterOpaque)
+ : component(inComponent), renderFunc(inRenderFunc), afterOpaque(inAfterOpaque), transformsToLDR(inLDR){ }
+
+ bool operator==(const ImageFilter& o) const { return component==o.component && renderFunc==o.renderFunc; }
+ bool operator!=(const ImageFilter& o) const { return component!=o.component || renderFunc!=o.renderFunc; }
+};
+
+#endif