// We always need the first update!
mStatus.keepUpdating = Integration::KeepUpdating::STAGE_KEEP_RENDERING;
+ mGraphics.Initialize();
mGraphicsController.InitializeGLES(mGlAbstraction);
- mGraphicsController.Initialize(mGlSyncAbstraction, mGlContextHelperAbstraction);
+ mGraphicsController.Initialize(mGlSyncAbstraction, mGlContextHelperAbstraction, mGraphics);
mCore = Dali::Integration::Core::New(mRenderController,
mPlatformAbstraction,
{
mScene = Dali::Integration::Scene::New(Size(static_cast<float>(mSurfaceWidth), static_cast<float>(mSurfaceHeight)));
mScene.SetDpi(Vector2(static_cast<float>(mDpi.x), static_cast<float>(mDpi.y)));
+
+ Graphics::RenderTargetCreateInfo createInfo{};
+ createInfo.SetSurface({nullptr})
+ .SetExtent({mSurfaceWidth, mSurfaceHeight})
+ .SetPreTransform(0 | Graphics::RenderTargetTransformFlagBits::TRANSFORM_IDENTITY_BIT);
+ mRenderTarget = mGraphicsController.CreateRenderTarget(createInfo, nullptr);
+ mScene.SetSurfaceRenderTarget(mRenderTarget.get());
}
void TestGraphicsApplication::InitializeCore()
{
mCore->ContextDestroyed();
mGraphicsController.InitializeGLES(mGlAbstraction);
- mGraphicsController.Initialize(mGlSyncAbstraction, mGlContextHelperAbstraction);
+ mGraphicsController.Initialize(mGlSyncAbstraction, mGlContextHelperAbstraction, mGraphics);
mCore->ContextCreated();
}