Commit 424a1320 authored by chili's avatar chili
Browse files

move ClearBuffer def into .cpp

parent 6554f8c8
......@@ -71,3 +71,9 @@ void Graphics::EndFrame()
{
pSwap->Present( 1u,0u );
}
void Graphics::ClearBuffer( float red,float green,float blue ) noexcept
{
const float color[] = { red,green,blue,1.0f };
pContext->ClearRenderTargetView( pTarget,color );
}
......@@ -10,11 +10,7 @@ public:
Graphics& operator=( const Graphics& ) = delete;
~Graphics();
void EndFrame();
void ClearBuffer( float red,float green,float blue ) noexcept
{
const float color[] = { red,green,blue,1.0f };
pContext->ClearRenderTargetView( pTarget,color );
}
void ClearBuffer( float red,float green,float blue ) noexcept;
private:
ID3D11Device* pDevice = nullptr;
IDXGISwapChain* pSwap = nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment