22#include <Unknwnbase.h>
31MIDL_INTERFACE(
"fb99fa64-d9cf-4e0e-9c75-90514797b01d")
32ID3DDeviceResourcesBase : public IUnknown
35 virtual HRESULT Initialize(HWND hwnd, Size logical_size) = 0;
37 virtual HRESULT Present(
bool vsync) = 0;
39 virtual void ClearRenderTarget(Color & clear_color) = 0;
41 virtual HRESULT HandleDeviceLost() = 0;
43 virtual HRESULT SetLogicalSize(Size logical_size) = 0;
45 virtual HRESULT SetDpi(
float dpi) = 0;
47 virtual HRESULT SetFullscreenState(
bool fullscreen) = 0;
49 virtual HRESULT GetFullscreenState(
bool* fullscreen) = 0;
51 virtual HRESULT ResizeTarget(UINT width, UINT height) = 0;
53 virtual HRESULT GetDisplaySettings(DXGI_MODE_DESC * *mode_descs,
int* num) = 0;
55 virtual void DiscardResources() = 0;