LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_CREATE: break; case WM_PAINT: Direct3DUpdate(hwnd); ValidateRect(hwnd, nullptr); break; case WM_DESTROY: Direct3DRelease(hwnd); PostQuitMessage(0); break; default: return DefWindowProc(hwnd, message, wParam, lParam); } return 0; }
CGraphicsEngine::~CGraphicsEngine(void) { Direct3DRelease(); }