草庐IT

AnotherWindowsApp

全部标签

c++ - DirectX10 交换链和设备指向 0x00000000(导致运行时错误)(c++)

好的,我关注了thistutorial(代码在页面下方,您可以点击显示代码的图片顶部)关于DX10和C++基本上代码就像//includeandstuffID3D10Device*device;//adding=NULLwontchangeproblemID3D10RenderTargetView*rtv;IDXGISwapChain*swapchain;//functionpredecs,winmain,winproc//winmaincallsinitD3D(hWnd)justbeforeenteringmsgloopvoidinitD3D(HWNDhWnd){DXGI_SWAP_