打包了窗口创建和dx初始化函数

class myRender:public DX11WBASE
{

public:
myRender(HINSTANCE hInstance):DX11WBASE(hInstance){};
virtual ~myRender(){}
void render()
{
float ClearColor[4] = { 0.0f, 0.125f, 0.3f, 1.0f };
//red,green,blue,alpha
m_pImmediateContext->ClearRenderTargetView( m_pRenderTargetView,
ClearColor );
m_pSwapChain->Present( 0, 0 );
}
};
使用方法用以上方法即可