This commit is contained in:
parent
92ea06a6ff
commit
2db411180d
5 changed files with 40 additions and 16 deletions
|
|
@ -47,8 +47,8 @@ int main() {
|
|||
|
||||
d3d8 = MwCreateWidget(MwD3D8Class, NULL, window, (1024 - 800) / 2, (768 - 600) / 2, 800, 600);
|
||||
|
||||
d3d = MwDirectXGetD3D8(d3d8);
|
||||
d3ddev = MwDirectXGetD3Dev8(d3d8);
|
||||
d3d = MwD3D8GetD3D(d3d8);
|
||||
d3ddev = MwD3D8GetD3Dev(d3d8);
|
||||
|
||||
// create three vertices using the CUSTOMVERTEX struct built earlier
|
||||
struct CUSTOMVERTEX vertices[] =
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ int main() {
|
|||
|
||||
d3d8 = MwCreateWidget(MwD3D9Class, NULL, window, (1024 - 800) / 2, (768 - 600) / 2, 800, 600);
|
||||
|
||||
d3d = MwDirectXGetD3D9(d3d8);
|
||||
d3ddev = MwDirectXGetD3Dev9(d3d8);
|
||||
d3d = MwD3D9GetD3D(d3d8);
|
||||
d3ddev = MwD3D9GetD3Dev(d3d8);
|
||||
|
||||
// create three vertices using the CUSTOMVERTEX struct built earlier
|
||||
struct CUSTOMVERTEX vertices[] =
|
||||
|
|
|
|||
|
|
@ -39,22 +39,22 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifdef MW_DIRECTX8
|
||||
MwInline LPDIRECT3D8 MwDirectXGetD3D8(MwWidget handle) {
|
||||
MwInline LPDIRECT3D8 MwD3D8GetD3D(MwWidget handle) {
|
||||
LPDIRECT3D8 out = NULL;
|
||||
MwVaWidgetExecute(handle, "mwDirectXGetD3D8", &out, NULL);
|
||||
return out;
|
||||
};
|
||||
MwInline LPDIRECT3DDEVICE8 MwDirectXGetD3Dev8(MwWidget handle) {
|
||||
MwInline LPDIRECT3DDEVICE8 MwD3D8GetD3Dev(MwWidget handle) {
|
||||
LPDIRECT3DDEVICE8 out = NULL;
|
||||
MwVaWidgetExecute(handle, "mwDirectXGetD3Dev8", &out);
|
||||
return out;
|
||||
};
|
||||
#else
|
||||
MwInline void* MwDirectXGetD3D8(MwWidget handle) {
|
||||
MwInline void* MwD3D8GetD3D(MwWidget handle) {
|
||||
(void)handle;
|
||||
return NULL;
|
||||
};
|
||||
MwInline void* MwDirectXGetD3Dev8(MwWidget handle) {
|
||||
MwInline void* MwD3D8GetD3Dev(MwWidget handle) {
|
||||
(void)handle;
|
||||
return NULL;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -38,22 +38,22 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifdef MW_DIRECTX9
|
||||
MwInline LPDIRECT3D9 MwDirectXGetD3D9(MwWidget handle) {
|
||||
MwInline LPDIRECT3D9 MwD3D9GetD3D(MwWidget handle) {
|
||||
LPDIRECT3D9 out = NULL;
|
||||
MwVaWidgetExecute(handle, "mwDirectXGetD3D9", &out, NULL);
|
||||
return out;
|
||||
};
|
||||
MwInline LPDIRECT3DDEVICE9 MwDirectXGetD3Dev9(MwWidget handle) {
|
||||
MwInline LPDIRECT3DDEVICE9 MwD3D9GetD3Dev(MwWidget handle) {
|
||||
LPDIRECT3DDEVICE9 out = NULL;
|
||||
MwVaWidgetExecute(handle, "mwDirectXGetD3Dev9", &out);
|
||||
return out;
|
||||
};
|
||||
#else
|
||||
MwInline void* MwDirectXGetD3D9(MwWidget handle) {
|
||||
MwInline void* MwD3D9GetD3D(MwWidget handle) {
|
||||
(void)handle;
|
||||
return NULL;
|
||||
};
|
||||
MwInline void* MwDirectXGetD3Dev9(MwWidget handle) {
|
||||
MwInline void* MwD3D9GetD3Dev(MwWidget handle) {
|
||||
(void)handle;
|
||||
return NULL;
|
||||
};
|
||||
|
|
|
|||
32
milsko.xml
32
milsko.xml
|
|
@ -1070,10 +1070,34 @@
|
|||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
<arguments>
|
||||
<integer enumname="MwVulkanField" name="field" />
|
||||
<integer pointer="yes" name="output" />
|
||||
</arguments>
|
||||
</function>
|
||||
</functions>
|
||||
</widget>
|
||||
<widget name="D3D8">
|
||||
<functions>
|
||||
<function name="GetD3D">
|
||||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
</function>
|
||||
<function name="GetD3Dev">
|
||||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
</function>
|
||||
</functions>
|
||||
</widget>
|
||||
<widget name="D3D9">
|
||||
<functions>
|
||||
<function name="GetD3D">
|
||||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
</function>
|
||||
<function name="GetD3Dev">
|
||||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
</function>
|
||||
</functions>
|
||||
</widget>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue