#include #define INITGUID #include "os2ddraw.h" #include "os2clipper.h" #include "os2palette.h" #include "os2surface.h" #define _OS2WIN_H #define FAR #include "misc.h" #include #include #undef THIS #define THIS VOID* //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DQueryInterface(THIS This, REFIID riid, LPVOID FAR * ppvObj) { dprintf(("D3DQueryInterface\n")); *ppvObj = NULL; if(IID_IDirect3D != (GUID &)&riid) return E_NOINTERFACE; *ppvObj = This; D3DAddRef(This); return(D3D_OK); } //****************************************************************************** //****************************************************************************** ULONG __stdcall D3DAddRef(THIS This) { OS2IDirectDraw *me = (OS2IDirectDraw *)This; dprintf(("OS2IDirectDraw::AddRef %d\n", me->Referenced+1)); return ++me->Referenced; } //****************************************************************************** //****************************************************************************** ULONG __stdcall D3DRelease(THIS This) { OS2IDirectDraw *me = (OS2IDirectDraw *)This; dprintf(("OS2IDirectDraw::Release %d\n", me->Referenced-1)); dprintf(("OS2IDirectDraw::%X \n", me)); if(me->Referenced) { me->Referenced--; if(me->Referenced == 0) { delete(me); return(0); } else return me->Referenced; } else return(0); } //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DInitialize(THIS This, REFIID) { dprintf(("D3DInitialize\n")); return(D3D_OK); } //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DEnumDevices(THIS This, LPD3DENUMDEVICESCALLBACK, LPVOID) { dprintf(("D3DEnumDevices\n")); return(D3D_OK); } //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DCreateLight(THIS This, LPDIRECT3DLIGHT*, IUnknown*) { dprintf(("D3DCreateLight\n")); return(D3D_OK); } //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DCreateMaterial(THIS This, LPDIRECT3DMATERIAL*, IUnknown*) { dprintf(("D3DCreateMaterial\n")); return(D3D_OK); } //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DCreateViewport(THIS This, LPDIRECT3DVIEWPORT*, IUnknown*) { dprintf(("D3DCreateViewport\n")); return(D3D_OK); } //****************************************************************************** //****************************************************************************** HRESULT __stdcall D3DFindDevice(THIS This, LPD3DFINDDEVICESEARCH, LPD3DFINDDEVICERESULT) { dprintf(("D3DCreateFindDevice\n")); return(D3D_OK); } //****************************************************************************** //******************************************************************************