mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 02:41:14 +00:00
27 lines
742 B
C++
27 lines
742 B
C++
#include "miniwin_d3d.h"
|
|
|
|
HRESULT IDirect3D2::EnumDevices(LPD3DENUMDEVICESCALLBACK cb, void* ctx)
|
|
{
|
|
if (!cb) {
|
|
return DDERR_INVALIDPARAMS;
|
|
}
|
|
|
|
GUID deviceGuid = {0xa4665c, 0x2673, 0x11ce, 0x8034a0};
|
|
|
|
char* deviceName = (char*) "MiniWin 3D Device";
|
|
char* deviceDesc = (char*) "Stubbed 3D device";
|
|
|
|
D3DDEVICEDESC halDesc = {};
|
|
halDesc.dcmColorModel = D3DCOLOR_RGB;
|
|
halDesc.dwDeviceZBufferBitDepth = DDBD_16;
|
|
halDesc.dpcTriCaps.dwTextureCaps = D3DPTEXTURECAPS_PERSPECTIVE;
|
|
D3DDEVICEDESC helDesc = {};
|
|
halDesc.dcmColorModel = D3DCOLOR_RGB;
|
|
halDesc.dwDeviceZBufferBitDepth = DDBD_16;
|
|
halDesc.dpcTriCaps.dwTextureCaps = D3DPTEXTURECAPS_PERSPECTIVE;
|
|
|
|
cb(&deviceGuid, deviceName, deviceDesc, &halDesc, &helDesc, ctx);
|
|
|
|
return S_OK;
|
|
}
|