추상 클래스와 정적 다형성 ( abstract class, static polymorphism ? )
#pragma comment(lib, "dxgi.lib") #include #include #include #include #include #include using namespace std; int main() { UINT i{ 0 }; IDXGIAdapter* adapter{ nullptr }; vector adapterList; Microsoft::WRL::ComPtr mdxgiFactory; CreateDXGIFactory1(IID_PPV_ARGS(&mdxgiFactory)); while (mdxgiFactory->EnumAdapters(i, &adapter) != DXGI_ERROR_NOT_FOUND) { DXGI_ADAPTER_DESC desc; adapter->GetDesc(&desc); w..