Define the main directx8 entrypoint.

This commit is contained in:
Jason Edmeades 2002-10-25 03:51:00 +00:00 committed by Alexandre Julliard
parent 331fb086be
commit 3f4d4dab65
2 changed files with 5 additions and 2 deletions

View File

@ -53,7 +53,7 @@ HRESULT WINAPI DebugSetMute(void)
return 0;
}
LPVOID WINAPI Direct3DCreate8(UINT SDKVersion)
IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion)
{
IDirect3D8Impl *object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D8Impl));
@ -66,7 +66,7 @@ LPVOID WINAPI Direct3DCreate8(UINT SDKVersion)
/* Dump out the gl supported features
TRACE("GL_Extensions reported: %s\n", glGetString(GL_EXTENSIONS)); */
return object;
return (IDirect3D8 *)object;
}
/* At process attach */

View File

@ -725,4 +725,7 @@ ICOM_DEFINE(IDirect3DVolumeTexture8,IDirect3DBaseTexture8)
#define IDirect3DVolumeTexture8_UnlockBox(p,a) ICOM_CALL1(UnlockBox,p,a)
#define IDirect3DVolumeTexture8_AddDirtyBox(p,a) ICOM_CALL1(AddDirtyBox,p,a)
/* Define the main entrypoint as well */
IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion);
#endif /* __WINE_D3D8_H */