void CRPWinRenderer::RenderInternal(bool clear, uint8_t alpha) { CRenderSystemDX *renderingDx = static_cast<CRenderSystemDX*>(m_context.Rendering()); // Set alpha blend state renderingDx->SetAlphaBlendEnable(alpha < 0xFF); Render(renderingDx->GetBackBuffer()); }
bool CRPWinRenderer::ConfigureInternal() { CRenderSystemDX *renderingDx = static_cast<CRenderSystemDX*>(m_context.Rendering()); DXGI_FORMAT targetDxFormat = renderingDx->GetBackBuffer().GetFormat(); static_cast<CWinRenderBufferPool*>(m_bufferPool.get())->ConfigureDX(targetDxFormat); return true; }