This commit is contained in:
parent
985e33c785
commit
b355a2ed93
4 changed files with 10 additions and 10 deletions
|
|
@ -71,8 +71,8 @@ int main() {
|
|||
|
||||
d3d9 = MwCreateWidget(MwDirect3D9Class, NULL, window, (1024 - 800) / 2, (768 - 600) / 2, 800, 600);
|
||||
|
||||
d3d = MwDirect3D9GetD3D(d3d9);
|
||||
d3ddev = MwDirect3D9GetD3DDevice(d3d9);
|
||||
d3d = MwDirect3D9GetDirect3D9(d3d9);
|
||||
d3ddev = MwDirect3D9GetDirect3DDevice9(d3d9);
|
||||
|
||||
d3ddev->lpVtbl->CreateVertexBuffer(d3ddev,
|
||||
3 * sizeof(struct CUSTOMVERTEX),
|
||||
|
|
|
|||
|
|
@ -38,14 +38,14 @@ MWDECL MwClass MwDirect3D9Class;
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
MwInline LPDIRECT3D9 MwDirect3D9GetD3D(MwWidget handle) {
|
||||
MwInline LPDIRECT3D9 MwDirect3D9GetDirect3D9(MwWidget handle) {
|
||||
LPDIRECT3D9 out = NULL;
|
||||
MwVaWidgetExecute(handle, "mwDirect3D9GetD3D9", &out, NULL);
|
||||
MwVaWidgetExecute(handle, "mwDirect3D9GetDirect3D9", &out, NULL);
|
||||
return out;
|
||||
};
|
||||
MwInline LPDIRECT3DDEVICE9 MwDirect3D9GetD3DDevice(MwWidget handle) {
|
||||
MwInline LPDIRECT3DDEVICE9 MwDirect3D9GetDirect3DDevice9(MwWidget handle) {
|
||||
LPDIRECT3DDEVICE9 out = NULL;
|
||||
MwVaWidgetExecute(handle, "mwDirect3D9GetD3DDevice9", &out);
|
||||
MwVaWidgetExecute(handle, "mwDirect3D9GetDirect3DDevice9", &out);
|
||||
return out;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1075,12 +1075,12 @@
|
|||
</widget>
|
||||
<widget name="Direct3D9">
|
||||
<functions>
|
||||
<function name="GetD3D">
|
||||
<function name="GetDirect3D9">
|
||||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
</function>
|
||||
<function name="GetD3DDevice">
|
||||
<function name="GetDirect3DDevice9">
|
||||
<return>
|
||||
<pointer />
|
||||
</return>
|
||||
|
|
|
|||
|
|
@ -69,10 +69,10 @@ static void func_handler_d3d9(MwWidget handle, const char* name, void* out,
|
|||
|
||||
(void)va;
|
||||
|
||||
if(strcmp(name, "mwDirect3D9GetD3D9") == 0) {
|
||||
if(strcmp(name, "mwDirect3D9GetDirect3D9") == 0) {
|
||||
*(LPDIRECT3D9*)out = o->d3d;
|
||||
}
|
||||
if(strcmp(name, "mwDirect3D9GetD3DDevice9") == 0) {
|
||||
if(strcmp(name, "mwDirect3D9GetDirect3DDevice9") == 0) {
|
||||
*(LPDIRECT3DDEVICE9*)out = o->d3ddev;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue