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

move ClearBuffer def into .cpp

parent 6554f8c8
...@@ -71,3 +71,9 @@ void Graphics::EndFrame() ...@@ -71,3 +71,9 @@ void Graphics::EndFrame()
{ {
pSwap->Present( 1u,0u ); 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: ...@@ -10,11 +10,7 @@ public:
Graphics& operator=( const Graphics& ) = delete; Graphics& operator=( const Graphics& ) = delete;
~Graphics(); ~Graphics();
void EndFrame(); void EndFrame();
void ClearBuffer( float red,float green,float blue ) noexcept void ClearBuffer( float red,float green,float blue ) noexcept;
{
const float color[] = { red,green,blue,1.0f };
pContext->ClearRenderTargetView( pTarget,color );
}
private: private:
ID3D11Device* pDevice = nullptr; ID3D11Device* pDevice = nullptr;
IDXGISwapChain* pSwap = 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