Added support for Multiple Render Targets, to Dali::FrameBuffer.
[platform/core/uifw/dali-core.git] / dali / public-api / rendering / frame-buffer.cpp
index 89b0a53..0814059 100644 (file)
@@ -108,9 +108,15 @@ void FrameBuffer::AttachColorTexture( Texture& texture, uint32_t mipmapLevel, ui
   }
 }
 
-Texture FrameBuffer::GetColorTexture()
+Texture FrameBuffer::GetColorTexture() const
 {
-  Internal::Texture* texturePtr = GetImplementation(*this).GetColorTexture();
+  Internal::Texture* texturePtr = GetImplementation(*this).GetColorTexture(0);
+  return Dali::Texture( texturePtr );
+}
+
+Texture FrameBuffer::GetColorTexture(uint8_t index) const
+{
+  Internal::Texture* texturePtr = GetImplementation(*this).GetColorTexture(index);
   return Dali::Texture( texturePtr );
 }