mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
commit
d162f8fb25
@ -395,8 +395,9 @@ void Citro3DRenderer::Resize(int width, int height, const ViewportTransform& vie
|
|||||||
|
|
||||||
void Citro3DRenderer::Clear(float r, float g, float b)
|
void Citro3DRenderer::Clear(float r, float g, float b)
|
||||||
{
|
{
|
||||||
// FIXME: check colors
|
u32 color =
|
||||||
C3D_RenderTargetClear(m_renderTarget, C3D_CLEAR_ALL, RGB(static_cast<int>(r * 255), static_cast<int>(g * 255), static_cast<int>(b * 255)), 0);
|
(static_cast<u32>(r * 255) << 24) | (static_cast<u32>(g * 255) << 16) | (static_cast<u32>(b * 255) << 8) | 255;
|
||||||
|
C3D_RenderTargetClear(m_renderTarget, C3D_CLEAR_ALL, color, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Citro3DRenderer::Flip()
|
void Citro3DRenderer::Flip()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user