33 lines
473 B
C++
33 lines
473 B
C++
#include "Direct3D.h"
|
|
|
|
INT Direct3D::init(HWND hWnd, UINT width, UINT height, BOOL isFullscreen)
|
|
{
|
|
// 1. define swap chain description
|
|
|
|
// 2. create Direct3D device, device context & swap chain
|
|
|
|
// 3. create render target
|
|
|
|
// 4. create depth stencil buffer
|
|
|
|
// 5. create rasterizer state
|
|
|
|
// 6. describe viewport
|
|
|
|
// 7. setup render pipeline (device context)
|
|
|
|
return 0;
|
|
}
|
|
|
|
void Direct3D::beginScene()
|
|
{
|
|
}
|
|
|
|
void Direct3D::endScene()
|
|
{
|
|
}
|
|
|
|
void Direct3D::deInit()
|
|
{
|
|
}
|