33 m_RenderGUIListener.Connect(
34 ARenderer::GetSingleton()->GetRenderGUIEmitter(),
40 auto pDisplayParams = Toshi::TRenderInterface::GetSingleton()->GetCurrentDisplayParams();
44 auto pViewport =
new Toshi::TViewport(
TTRUE );
45 pViewport->SetX( 0.0f );
46 pViewport->SetY( 0.0f );
47 pViewport->SetWidth(
TFLOAT( pDisplayParams->uiWidth ) );
48 pViewport->SetHeight(
TFLOAT( pDisplayParams->uiHeight ) );
49 pViewport->SetMinZ( 0.0f );
50 pViewport->SetMaxZ( 1.0f );
51 pViewport->SetBackgroundColor( 0, 0, 0, 0 );
52 pViewport->AllowBackgroundClear(
TFALSE );
53 pViewport->AllowDepthClear(
TTRUE );
57 m_pRenderObjects[ i ]->SetViewport( pViewport );
100 if ( !a_rName.IsEmpty() && a_rName.GetString8().Length() != 0 )
102 bShowPicture = ( a_rName != m_MatLibPicture.GetName() );
107 if ( ATerrainInterface::IsSingletonCreated() )
109 ATerrainInterface::GetSingleton()->WaitUntilLoaded();
112 m_MatLibPicture.Create( a_rName );
113 m_MatLibPicture.Flush();
114 m_MatLibPicture.Cache();
115 m_MatLibPicture.SetVisible();
117 else if ( a_rName.IsEmpty() || a_rName.GetString8().Length() == 0 )
119 m_MatLibPicture.Flush();
120 m_MatLibPicture.Create( a_rName );
121 m_MatLibPicture.SetHidden();