source: trunk/src/ddraw/OS2D3D.CPP@ 210

Last change on this file since 210 was 210, checked in by hugh, 26 years ago

DX 6 Version of ddraw rel files

File size: 3.4 KB
Line 
1#include <memory.h>
2
3#define INITGUID
4#include "os2ddraw.h"
5#include "os2clipper.h"
6#include "os2palette.h"
7#include "os2surface.h"
8#define _OS2WIN_H
9#define FAR
10#include "misc.h"
11#include <winerror.h>
12#include <builtin.h>
13#undef THIS
14#define THIS VOID*
15
16//******************************************************************************
17//******************************************************************************
18HRESULT __stdcall D3DQueryInterface(THIS This, REFIID riid, LPVOID FAR * ppvObj)
19{
20 dprintf(("D3DQueryInterface\n"));
21 *ppvObj = NULL;
22
23 if(IID_IDirect3D != (GUID &)&riid)
24 return E_NOINTERFACE;
25
26 *ppvObj = This;
27
28 D3DAddRef(This);
29 return(D3D_OK);
30}
31//******************************************************************************
32//******************************************************************************
33ULONG __stdcall D3DAddRef(THIS This)
34{
35 OS2IDirectDraw *me = (OS2IDirectDraw *)This;
36
37 dprintf(("OS2IDirectDraw::AddRef %d\n", me->Referenced+1));
38 return ++me->Referenced;
39}
40//******************************************************************************
41//******************************************************************************
42ULONG __stdcall D3DRelease(THIS This)
43{
44 OS2IDirectDraw *me = (OS2IDirectDraw *)This;
45
46 dprintf(("OS2IDirectDraw::Release %d\n", me->Referenced-1));
47 dprintf(("OS2IDirectDraw::%X \n", me));
48 if(me->Referenced) {
49 me->Referenced--;
50 if(me->Referenced == 0) {
51 delete me;
52 return(0);
53 }
54 else return me->Referenced;
55 }
56 else return(0);
57}
58//******************************************************************************
59//******************************************************************************
60HRESULT __stdcall D3DInitialize(THIS This, REFIID)
61{
62 dprintf(("D3DInitialize\n"));
63 return(D3D_OK);
64}
65//******************************************************************************
66//******************************************************************************
67HRESULT __stdcall D3DEnumDevices(THIS This, LPD3DENUMDEVICESCALLBACK, LPVOID)
68{
69 dprintf(("D3DEnumDevices\n"));
70 return(D3D_OK);
71}
72//******************************************************************************
73//******************************************************************************
74HRESULT __stdcall D3DCreateLight(THIS This, LPDIRECT3DLIGHT*, IUnknown*)
75{
76 dprintf(("D3DCreateLight\n"));
77 return(D3D_OK);
78}
79//******************************************************************************
80//******************************************************************************
81HRESULT __stdcall D3DCreateMaterial(THIS This, LPDIRECT3DMATERIAL*, IUnknown*)
82{
83 dprintf(("D3DCreateMaterial\n"));
84 return(D3D_OK);
85}
86//******************************************************************************
87//******************************************************************************
88HRESULT __stdcall D3DCreateViewport(THIS This, LPDIRECT3DVIEWPORT*, IUnknown*)
89{
90 dprintf(("D3DCreateViewport\n"));
91 return(D3D_OK);
92}
93//******************************************************************************
94//******************************************************************************
95HRESULT __stdcall D3DFindDevice(THIS This, LPD3DFINDDEVICESEARCH, LPD3DFINDDEVICERESULT)
96{
97 dprintf(("D3DCreateFindDevice\n"));
98 return(D3D_OK);
99}
100//******************************************************************************
101//******************************************************************************
Note: See TracBrowser for help on using the repository browser.