+ /**
+ * Get the view matrix for rendering
+ * @param index of the rendering side
+ * @return the view matrix
+ */
+ const Matrix* GetViewMatrix( BufferIndex index ) const
+ {
+ // inlined as this is called once per frame per render instruction
+ return &mCamera->GetViewMatrix( index );
+ }
+
+ /**
+ * Get the projection matrix for rendering
+ * @param index of the rendering side
+ * @return the projection matrix
+ */
+ const Matrix* GetProjectionMatrix( BufferIndex index ) const
+ {
+ // inlined as this is called once per frame per render instruction
+ return &mCamera->GetProjectionMatrix( index );
+ }
+ // for reflection effect
+ const Camera* GetCamera() const
+ {
+ return mCamera;
+ }
+