GlContextHelperAbstraction& glContextHelperAbstraction,
RenderToFrameBuffer renderToFboEnabled,
DepthBufferAvailable depthBufferAvailable,
- StencilBufferAvailable stencilBufferAvailable )
+ StencilBufferAvailable stencilBufferAvailable,
+ PartialUpdateAvailable partialUpdateAvailable )
{
Core* instance = new Core;
instance->mImpl = new Internal::Core( renderController,
glContextHelperAbstraction,
renderToFboEnabled,
depthBufferAvailable,
- stencilBufferAvailable );
+ stencilBufferAvailable,
+ partialUpdateAvailable );
return instance;
}
mImpl->PreRender( status, forceClear, uploadOnly );
}
-void Core::RenderScene( Integration::Scene& scene, bool renderToFbo )
+void Core::PreRender( Integration::Scene& scene, std::vector<Rect<int>>& damagedRects )
{
- mImpl->RenderScene( scene, renderToFbo );
+ mImpl->PreRender( scene, damagedRects );
+}
+
+void Core::RenderScene( RenderStatus& status, Integration::Scene& scene, bool renderToFbo )
+{
+ mImpl->RenderScene( status, scene, renderToFbo );
+}
+
+void Core::RenderScene( RenderStatus& status, Integration::Scene& scene, bool renderToFbo, Rect<int>& clippingRect )
+{
+ mImpl->RenderScene( status, scene, renderToFbo, clippingRect );
}
void Core::PostRender( bool uploadOnly )
mImpl->UnregisterProcessor( processor );
}
+ObjectRegistry Core::GetObjectRegistry() const
+{
+ return ObjectRegistry( &mImpl->GetObjectRegistry() );
+}
+
Core::Core()
-: mImpl( NULL )
+: mImpl( nullptr )
{
}