perl
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
IoIxD 2026-09-17 22:02:27 -07:00
commit 20c39b86f4
9 changed files with 62 additions and 22 deletions

View file

@ -20,6 +20,7 @@
#ifndef _WIN32
#error D3D9 widget only avaliable for Win32 backends
#undef MW_DIRECTX9
#else
#ifdef MW_DIRECTX9
#include <d3d9.h>
@ -36,6 +37,7 @@ MWDECL MwClass MwD3D9Class;
extern "C" {
#endif
#ifdef MW_DIRECTX9
MwInline LPDIRECT3D9 MwDirectXGetD3D9(MwWidget handle) {
LPDIRECT3D9 out = NULL;
MwVaWidgetExecute(handle, "mwDirectXGetD3D9", &out, NULL);
@ -46,6 +48,16 @@ MwInline LPDIRECT3DDEVICE9 MwDirectXGetD3Dev9(MwWidget handle) {
MwVaWidgetExecute(handle, "mwDirectXGetD3Dev9", &out);
return out;
};
#else
MwInline void* MwDirectXGetD3D9(MwWidget handle) {
(void)handle;
return NULL;
};
MwInline void* MwDirectXGetD3Dev9(MwWidget handle) {
(void)handle;
return NULL;
};
#endif
#ifdef __cplusplus
}