[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-instruction.h
index 3157f85..f40ec04 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_H
 
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,6 +24,7 @@
 #include <dali/internal/update/render-tasks/scene-graph-camera.h>
 #include <dali/internal/render/common/render-list.h>
 #include <dali/internal/render/renderers/render-frame-buffer.h>
+#include <dali/internal/render/gl-resources/context.h>
 
 namespace Dali
 {
@@ -121,7 +122,12 @@ public:
   const Matrix* GetProjectionMatrix( BufferIndex index ) const
   {
     // inlined as this is called once per frame per render instruction
-    return &mCamera->GetProjectionMatrix( index );
+    return &mCamera->GetFinalProjectionMatrix( index );
+  }
+  // for reflection effect
+  const Camera* GetCamera() const
+  {
+    return mCamera;
   }
 
 private:
@@ -143,6 +149,8 @@ public: // Data
 
   Render::FrameBuffer* mFrameBuffer;
 
+  Context* mContext;                    ///< The context holding the GL state of rendering
+
 private: // Data
 
   Camera* mCamera;  ///< camera that is used