Exemple #1
0
void Renderer::Update()
{
	if ( !_pGraphics )
		return;

	_pGraphics->SetCamera( &_camera );
	_pGraphics->ClearColor( _clearColor );

	uint size = _renderItemList.size();
	RenderItem *item;
	for ( uint i = 0; i < size; ++i )
	{
		item = _renderItemList[i];
		item->Update();

		_pGraphics->Draw( item->GetSurface() );
	}

	_pGraphics->EndFrame();
}