Index: ddraw/glDirect3DViewport.cpp |
— | — | @@ -36,6 +36,7 @@ |
37 | 37 |
|
38 | 38 | glDirect3DViewport3::glDirect3DViewport3()
|
39 | 39 | {
|
| 40 | + TRACE_ENTER(1,14,this);
|
40 | 41 | background = 0;
|
41 | 42 | ZeroMemory(&viewport,sizeof(D3DVIEWPORT2));
|
42 | 43 | viewport.dwSize = sizeof(D3DVIEWPORT2);
|
— | — | @@ -48,10 +49,12 @@ |
49 | 50 | current = false;
|
50 | 51 | glD3DV2 = NULL;
|
51 | 52 | glD3DV1 = NULL;
|
| 53 | + TRACE_EXIT(-1,0);
|
52 | 54 | }
|
53 | 55 |
|
54 | 56 | glDirect3DViewport3::~glDirect3DViewport3()
|
55 | 57 | {
|
| 58 | + TRACE_ENTER(1,14,this);
|
56 | 59 | if(device) device->Release();
|
57 | 60 | if(backZ) backZ->Release();
|
58 | 61 | for(int i = 0; i < 8; i++)
|
— | — | @@ -58,15 +61,19 @@ |
59 | 62 | {
|
60 | 63 | if(lights[i]) lights[i]->Release();
|
61 | 64 | }
|
| 65 | + TRACE_EXIT(-1,0);
|
62 | 66 | }
|
63 | 67 |
|
64 | 68 | HRESULT WINAPI glDirect3DViewport3::QueryInterface(REFIID riid, void** ppvObj)
|
65 | 69 | {
|
66 | | - if(!this) return DDERR_INVALIDOBJECT;
|
| 70 | + TRACE_ENTER(3,14,this,24,&riid,14,ppvObj);
|
| 71 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
67 | 72 | if(riid == IID_IUnknown)
|
68 | 73 | {
|
69 | 74 | this->AddRef();
|
70 | 75 | *ppvObj = this;
|
| 76 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 77 | + TRACE_EXIT(23,D3D_OK);
|
71 | 78 | return D3D_OK;
|
72 | 79 | }
|
73 | 80 | if(riid == IID_IDirect3DViewport3)
|
— | — | @@ -73,6 +80,8 @@ |
74 | 81 | {
|
75 | 82 | this->AddRef();
|
76 | 83 | *ppvObj = this;
|
| 84 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 85 | + TRACE_EXIT(23,D3D_OK);
|
77 | 86 | return D3D_OK;
|
78 | 87 | }
|
79 | 88 | if(riid == IID_IDirect3DViewport2)
|
— | — | @@ -81,6 +90,8 @@ |
82 | 91 | {
|
83 | 92 | *ppvObj = glD3DV2;
|
84 | 93 | glD3DV2->AddRef();
|
| 94 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 95 | + TRACE_EXIT(23,D3D_OK);
|
85 | 96 | return D3D_OK;
|
86 | 97 | }
|
87 | 98 | else
|
— | — | @@ -88,6 +99,8 @@ |
89 | 100 | this->AddRef();
|
90 | 101 | *ppvObj = new glDirect3DViewport2(this);
|
91 | 102 | glD3DV2 = (glDirect3DViewport2*)*ppvObj;
|
| 103 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 104 | + TRACE_EXIT(23,D3D_OK);
|
92 | 105 | return D3D_OK;
|
93 | 106 | }
|
94 | 107 | }
|
— | — | @@ -97,6 +110,8 @@ |
98 | 111 | {
|
99 | 112 | *ppvObj = glD3DV1;
|
100 | 113 | glD3DV1->AddRef();
|
| 114 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 115 | + TRACE_EXIT(23,D3D_OK);
|
101 | 116 | return D3D_OK;
|
102 | 117 | }
|
103 | 118 | else
|
— | — | @@ -104,33 +119,41 @@ |
105 | 120 | this->AddRef();
|
106 | 121 | *ppvObj = new glDirect3DViewport1(this);
|
107 | 122 | glD3DV1 = (glDirect3DViewport1*)*ppvObj;
|
| 123 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 124 | + TRACE_EXIT(23,D3D_OK);
|
108 | 125 | return D3D_OK;
|
109 | 126 | }
|
110 | 127 | }
|
| 128 | + TRACE_EXIT(23,E_NOINTERFACE);
|
111 | 129 | return E_NOINTERFACE;
|
112 | 130 | }
|
113 | 131 |
|
114 | 132 | ULONG WINAPI glDirect3DViewport3::AddRef()
|
115 | 133 | {
|
116 | | - if(!this) return 0;
|
| 134 | + TRACE_ENTER(1,14,this);
|
| 135 | + if(!this) TRACE_RET(8,0);
|
117 | 136 | refcount++;
|
| 137 | + TRACE_EXIT(8,refcount);
|
118 | 138 | return refcount;
|
119 | 139 | }
|
120 | 140 |
|
121 | 141 | ULONG WINAPI glDirect3DViewport3::Release()
|
122 | 142 | {
|
123 | | - if(!this) return 0;
|
| 143 | + TRACE_ENTER(1,14,this);
|
| 144 | + if(!this) TRACE_RET(8,0);
|
124 | 145 | ULONG ret;
|
125 | 146 | refcount--;
|
126 | 147 | ret = refcount;
|
127 | 148 | if(refcount == 0) delete this;
|
| 149 | + TRACE_EXIT(8,refcount);
|
128 | 150 | return ret;
|
129 | 151 | }
|
130 | 152 |
|
131 | 153 | HRESULT WINAPI glDirect3DViewport3::AddLight(LPDIRECT3DLIGHT lpDirect3DLight)
|
132 | 154 | {
|
133 | | - if(!this) return DDERR_INVALIDOBJECT;
|
134 | | - if(((glDirect3DLight*)lpDirect3DLight)->viewport) return D3DERR_LIGHTHASVIEWPORT;
|
| 155 | + TRACE_ENTER(2,14,this,14,lpDirect3DLight);
|
| 156 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 157 | + if(((glDirect3DLight*)lpDirect3DLight)->viewport) TRACE_EXIT(23,D3DERR_LIGHTHASVIEWPORT);
|
135 | 158 | for(int i = 0; i < 8; i++)
|
136 | 159 | {
|
137 | 160 | if(!lights[i])
|
— | — | @@ -141,32 +164,37 @@ |
142 | 165 | lights[i]->viewport = this;
|
143 | 166 | if(device) lights[i]->SetDevice(device,i);
|
144 | 167 | lights[i]->Sync();
|
| 168 | + TRACE_EXIT(23,D3D_OK);
|
145 | 169 | return D3D_OK;
|
146 | 170 | }
|
147 | 171 | }
|
| 172 | + TRACE_EXIT(23,D3DERR_LIGHT_SET_FAILED);
|
148 | 173 | return D3DERR_LIGHT_SET_FAILED;
|
149 | 174 | }
|
150 | 175 |
|
151 | 176 | HRESULT WINAPI glDirect3DViewport3::Clear(DWORD dwCount, LPD3DRECT lpRects, DWORD dwFlags)
|
152 | 177 | {
|
153 | | - if(!this) return DDERR_INVALIDOBJECT;
|
154 | | - if(!device) return D3DERR_VIEWPORTHASNODEVICE;
|
| 178 | + TRACE_ENTER(4,14,this,8,dwCount,14,lpRects,9,dwFlags);
|
| 179 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 180 | + if(!device) TRACE_RET(23,D3DERR_VIEWPORTHASNODEVICE);
|
155 | 181 | D3DCOLORVALUE bgcolor = {0.0,0.0,0.0,0.0};
|
156 | 182 | if(device->materials[background]) bgcolor = device->materials[background]->material.diffuse;
|
157 | | - return device->Clear(dwCount,lpRects,dwFlags,d3dcvtod3dcolor(bgcolor),0.0,0);
|
| 183 | + TRACE_RET(23,device->Clear(dwCount,lpRects,dwFlags,d3dcvtod3dcolor(bgcolor),0.0,0));
|
158 | 184 | }
|
159 | 185 |
|
160 | 186 | HRESULT WINAPI glDirect3DViewport3::Clear2(DWORD dwCount, LPD3DRECT lpRects, DWORD dwFlags, DWORD dwColor, D3DVALUE dvZ, DWORD dwStencil)
|
161 | 187 | {
|
162 | | - if(!this) return DDERR_INVALIDOBJECT;
|
163 | | - if(!device) return D3DERR_VIEWPORTHASNODEVICE;
|
164 | | - return device->Clear(dwCount,lpRects,dwFlags,dwColor,dvZ,dwStencil);
|
| 188 | + TRACE_ENTER(7,14,this,8,dwCount,14,lpRects,9,dwFlags,9,dwColor,19,&dvZ,9,dwStencil);
|
| 189 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 190 | + if(!device) TRACE_EXIT(23,D3DERR_VIEWPORTHASNODEVICE);
|
| 191 | + TRACE_RET(23,device->Clear(dwCount,lpRects,dwFlags,dwColor,dvZ,dwStencil));
|
165 | 192 | }
|
166 | 193 |
|
167 | 194 | HRESULT WINAPI glDirect3DViewport3::DeleteLight(LPDIRECT3DLIGHT lpDirect3DLight)
|
168 | 195 | {
|
169 | | - if(!this) return DDERR_INVALIDOBJECT;
|
170 | | - if(!lpDirect3DLight) return DDERR_INVALIDPARAMS;
|
| 196 | + TRACE_ENTER(2,14,this,14,lpDirect3DLight);
|
| 197 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 198 | + if(!lpDirect3DLight) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
171 | 199 | for(int i = 0; i < 8; i++)
|
172 | 200 | {
|
173 | 201 | if(lights[i] == lpDirect3DLight)
|
— | — | @@ -174,119 +202,151 @@ |
175 | 203 | lights[i]->Release();
|
176 | 204 | lights[i]->SetDevice(NULL,0);
|
177 | 205 | lights[i] = NULL;
|
| 206 | + TRACE_EXIT(23,D3D_OK);
|
178 | 207 | return D3D_OK;
|
179 | 208 | }
|
180 | 209 | }
|
| 210 | + TRACE_EXIT(23,D3DERR_LIGHTHASVIEWPORT);
|
181 | 211 | return D3DERR_LIGHTNOTINTHISVIEWPORT;
|
182 | 212 | }
|
183 | 213 |
|
184 | 214 | HRESULT WINAPI glDirect3DViewport3::GetBackground(LPD3DMATERIALHANDLE lphMat, LPBOOL lpValid)
|
185 | 215 | {
|
186 | | - if(!this) return DDERR_INVALIDOBJECT;
|
187 | | - if(!lphMat) return DDERR_INVALIDPARAMS;
|
| 216 | + TRACE_ENTER(3,14,this,14,lphMat,14,lpValid);
|
| 217 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 218 | + if(!lphMat) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
188 | 219 | if(lpValid)
|
189 | 220 | {
|
190 | 221 | if(background) *lpValid = TRUE;
|
191 | 222 | else *lpValid = FALSE;
|
| 223 | + TRACE_VAR("*lpValid",22,*lpValid);
|
192 | 224 | }
|
193 | 225 | *lphMat = background;
|
| 226 | + TRACE_VAR("*lphMat",9,*lphMat);
|
| 227 | + TRACE_EXIT(23,D3D_OK);
|
194 | 228 | return D3D_OK;
|
195 | 229 | }
|
196 | 230 |
|
197 | 231 | HRESULT WINAPI glDirect3DViewport3::GetBackgroundDepth(LPDIRECTDRAWSURFACE* lplpDDSurface, LPBOOL lpValid)
|
198 | 232 | {
|
199 | | - if(!this) return DDERR_INVALIDOBJECT;
|
200 | | - if(!lplpDDSurface) return DDERR_INVALIDPARAMS;
|
| 233 | + TRACE_ENTER(3,14,this,14,lplpDDSurface,14,lpValid);
|
| 234 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 235 | + if(!lplpDDSurface) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
201 | 236 | if(lpValid)
|
202 | 237 | {
|
203 | 238 | if(backZ) *lpValid = TRUE;
|
204 | 239 | else *lpValid = FALSE;
|
| 240 | + TRACE_VAR("*lpValid",22,*lpValid);
|
205 | 241 | }
|
206 | 242 | if(backZ) backZ->QueryInterface(IID_IDirectDrawSurface,(void**)lplpDDSurface);
|
207 | 243 | else *lplpDDSurface = NULL;
|
| 244 | + TRACE_VAR("*lplpDDSurface",14,*lplpDDSurface);
|
| 245 | + TRACE_EXIT(23,D3D_OK);
|
208 | 246 | return D3D_OK;
|
209 | 247 | }
|
210 | 248 | HRESULT WINAPI glDirect3DViewport3::GetBackgroundDepth2(LPDIRECTDRAWSURFACE4* lplpDDS, LPBOOL lpValid)
|
211 | 249 | {
|
212 | | - if(!this) return DDERR_INVALIDOBJECT;
|
213 | | - if(!lplpDDS) return DDERR_INVALIDPARAMS;
|
| 250 | + TRACE_ENTER(3,14,this,14,lplpDDS,14,lpValid);
|
| 251 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 252 | + if(!lplpDDS) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
214 | 253 | if(lpValid)
|
215 | 254 | {
|
216 | 255 | if(backZ) *lpValid = TRUE;
|
217 | 256 | else *lpValid = FALSE;
|
| 257 | + TRACE_VAR("*lpValid",22,*lpValid);
|
218 | 258 | }
|
219 | 259 | if(backZ) backZ->QueryInterface(IID_IDirectDrawSurface4,(void**)lplpDDS);
|
220 | 260 | else *lplpDDS = NULL;
|
| 261 | + TRACE_VAR("*lplpDDS",14,*lplpDDS);
|
| 262 | + TRACE_EXIT(23,D3D_OK);
|
221 | 263 | return D3D_OK;
|
222 | 264 | }
|
223 | 265 | HRESULT WINAPI glDirect3DViewport3::GetViewport(LPD3DVIEWPORT lpData)
|
224 | 266 | {
|
225 | | - if(!this) return DDERR_INVALIDOBJECT;
|
226 | | - if(!lpData) return DDERR_INVALIDPARAMS;
|
| 267 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 268 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 269 | + if(!lpData) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
227 | 270 | memcpy(lpData,&viewport,sizeof(D3DVIEWPORT2));
|
228 | 271 | lpData->dvScaleX = scaleX;
|
229 | 272 | lpData->dvScaleY = scaleY;
|
230 | 273 | lpData->dvMaxX = maxX;
|
231 | 274 | lpData->dvMaxY = maxY;
|
| 275 | + TRACE_EXIT(23,D3D_OK);
|
232 | 276 | return D3D_OK;
|
233 | 277 | }
|
234 | 278 | HRESULT WINAPI glDirect3DViewport3::GetViewport2(LPD3DVIEWPORT2 lpData)
|
235 | 279 | {
|
236 | | - if(!this) return DDERR_INVALIDOBJECT;
|
237 | | - if(!lpData) return DDERR_INVALIDPARAMS;
|
| 280 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 281 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 282 | + if(!lpData) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
238 | 283 | memcpy(lpData,&viewport,sizeof(D3DVIEWPORT2));
|
| 284 | + TRACE_EXIT(23,D3D_OK);
|
239 | 285 | return D3D_OK;
|
240 | 286 | }
|
241 | 287 | HRESULT WINAPI glDirect3DViewport3::Initialize(LPDIRECT3D lpDirect3D)
|
242 | 288 | {
|
243 | | - if(!this) return DDERR_INVALIDOBJECT;
|
| 289 | + TRACE_ENTER(2,14,this,14,lpDirect3D);
|
| 290 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 291 | + TRACE_EXIT(23,DDERR_ALREADYINITIALIZED);
|
244 | 292 | return DDERR_ALREADYINITIALIZED;
|
245 | 293 | }
|
246 | 294 | HRESULT WINAPI glDirect3DViewport3::LightElements(DWORD dwElementCount, LPD3DLIGHTDATA lpData)
|
247 | 295 | {
|
248 | | - return E_NOTIMPL;
|
| 296 | + TRACE_ENTER(3,14,this,8,dwElementCount,14,lpData);
|
| 297 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 298 | + TRACE_EXIT(23,DDERR_UNSUPPORTED);
|
| 299 | + return DDERR_UNSUPPORTED;
|
249 | 300 | }
|
250 | 301 | HRESULT WINAPI glDirect3DViewport3::NextLight(LPDIRECT3DLIGHT lpDirect3DLight, LPDIRECT3DLIGHT* lplpDirect3DLight, DWORD dwFlags)
|
251 | 302 | {
|
252 | | - if(!this) return DDERR_INVALIDOBJECT;
|
253 | | - if(!lplpDirect3DLight) return DDERR_INVALIDPARAMS;
|
| 303 | + TRACE_ENTER(4,14,this,14,lpDirect3DLight,14,lplpDirect3DLight,9,dwFlags);
|
| 304 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 305 | + if(!lplpDirect3DLight) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
254 | 306 | FIXME("glDirect3DViewport3::NextLight: stub");
|
| 307 | + TRACE_EXIT(23,DDERR_GENERIC);
|
255 | 308 | return DDERR_GENERIC;
|
256 | 309 | }
|
257 | 310 | HRESULT WINAPI glDirect3DViewport3::SetBackground(D3DMATERIALHANDLE hMat)
|
258 | 311 | {
|
259 | | - if(!this) return DDERR_INVALIDOBJECT;
|
260 | | - if(!device) return D3DERR_VIEWPORTHASNODEVICE;
|
261 | | - if(hMat > device->materialcount) return DDERR_INVALIDPARAMS;
|
| 312 | + TRACE_ENTER(2,14,this,9,hMat);
|
| 313 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 314 | + if(!device) TRACE_RET(23,D3DERR_VIEWPORTHASNODEVICE);
|
| 315 | + if(hMat > device->materialcount) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
262 | 316 | background = hMat;
|
| 317 | + TRACE_EXIT(23,D3D_OK);
|
263 | 318 | return D3D_OK;
|
264 | 319 | }
|
265 | 320 | HRESULT WINAPI glDirect3DViewport3::SetBackgroundDepth(LPDIRECTDRAWSURFACE lpDDSurface)
|
266 | 321 | {
|
267 | | - if(!this) return DDERR_INVALIDOBJECT;
|
268 | | - if(!backZ && !lpDDSurface) return D3D_OK;
|
269 | | - if(((glDirectDrawSurface1*)lpDDSurface)->GetDDS7() == backZ) return D3D_OK;
|
| 322 | + TRACE_ENTER(2,14,this,14,lpDDSurface);
|
| 323 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 324 | + if(!backZ && !lpDDSurface) TRACE_RET(23,D3D_OK);
|
| 325 | + if(((glDirectDrawSurface1*)lpDDSurface)->GetDDS7() == backZ) TRACE_RET(23,D3D_OK);
|
270 | 326 | if(backZ)backZ->Release();
|
271 | 327 | if(lpDDSurface) lpDDSurface->QueryInterface(IID_IDirectDrawSurface7,(void**)&backZ);
|
272 | 328 | else backZ = NULL;
|
| 329 | + TRACE_EXIT(23,D3D_OK);
|
273 | 330 | return D3D_OK;
|
274 | 331 | }
|
275 | 332 | HRESULT WINAPI glDirect3DViewport3::SetBackgroundDepth2(LPDIRECTDRAWSURFACE4 lpDDS)
|
276 | 333 | {
|
277 | | - if(!this) return DDERR_INVALIDOBJECT;
|
278 | | - if(!backZ && !lpDDS) return D3D_OK;
|
279 | | - if(((glDirectDrawSurface4*)lpDDS)->GetDDS7() == backZ) return D3D_OK;
|
| 334 | + TRACE_ENTER(2,14,this,14,lpDDS);
|
| 335 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 336 | + if(!backZ && !lpDDS) TRACE_RET(23,D3D_OK);
|
| 337 | + if(((glDirectDrawSurface4*)lpDDS)->GetDDS7() == backZ) TRACE_RET(23,D3D_OK);
|
280 | 338 | if(backZ)backZ->Release();
|
281 | 339 | if(lpDDS) lpDDS->QueryInterface(IID_IDirectDrawSurface7,(void**)&backZ);
|
282 | 340 | else backZ = NULL;
|
| 341 | + TRACE_EXIT(23,D3D_OK);
|
283 | 342 | return D3D_OK;
|
284 | 343 | }
|
285 | 344 |
|
286 | 345 | HRESULT WINAPI glDirect3DViewport3::SetViewport(LPD3DVIEWPORT lpData)
|
287 | 346 | {
|
288 | | - if(!this) return DDERR_INVALIDOBJECT;
|
289 | | - if(!device) return D3DERR_VIEWPORTHASNODEVICE;
|
290 | | - if(!lpData) return DDERR_INVALIDPARAMS;
|
| 347 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 348 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 349 | + if(!device) TRACE_RET(23,D3DERR_VIEWPORTHASNODEVICE);
|
| 350 | + if(!lpData) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
291 | 351 | D3DVIEWPORT2 vp;
|
292 | 352 | memcpy(&vp,lpData,sizeof(D3DVIEWPORT));
|
293 | 353 | vp.dvClipHeight = viewport.dvClipHeight;
|
— | — | @@ -300,27 +360,37 @@ |
301 | 361 | scaleX = lpData->dvScaleX;
|
302 | 362 | scaleY = lpData->dvScaleY;
|
303 | 363 | if(current && device) Sync();
|
| 364 | + TRACE_EXIT(23,D3D_OK);
|
304 | 365 | return D3D_OK;
|
305 | 366 | }
|
306 | 367 | HRESULT WINAPI glDirect3DViewport3::SetViewport2(LPD3DVIEWPORT2 lpData)
|
307 | 368 | {
|
308 | | - if(!this) return DDERR_INVALIDOBJECT;
|
309 | | - if(!device) return D3DERR_VIEWPORTHASNODEVICE;
|
310 | | - if(!lpData) return DDERR_INVALIDPARAMS;
|
| 369 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 370 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 371 | + if(!device) TRACE_RET(23,D3DERR_VIEWPORTHASNODEVICE);
|
| 372 | + if(!lpData) TRACE_RET(23,DDERR_INVALIDPARAMS);
|
311 | 373 | viewport = *lpData;
|
312 | 374 | if(current && device) Sync();
|
| 375 | + TRACE_EXIT(23,D3D_OK);
|
313 | 376 | return D3D_OK;
|
314 | 377 | }
|
315 | 378 | HRESULT WINAPI glDirect3DViewport3::TransformVertices(DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffscreen)
|
316 | 379 | {
|
317 | | - if(!this) return DDERR_INVALIDOBJECT;
|
| 380 | + TRACE_ENTER(5,14,this,8,dwVertexCount,14,lpData,9,dwFlags,14,lpOffscreen);
|
| 381 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
318 | 382 | FIXME("glDirect3DViewport3::TransformVertices: stub");
|
| 383 | + TRACE_EXIT(23,DDERR_GENERIC);
|
319 | 384 | return DDERR_GENERIC;
|
320 | 385 | }
|
321 | 386 |
|
322 | 387 | void glDirect3DViewport3::SetCurrent(bool current)
|
323 | 388 | {
|
324 | | - if(this->current && current) return;
|
| 389 | + TRACE_ENTER(2,14,this,21,current);
|
| 390 | + if(this->current && current)
|
| 391 | + {
|
| 392 | + TRACE_EXIT(0,0);
|
| 393 | + return;
|
| 394 | + }
|
325 | 395 | this->current = current;
|
326 | 396 | if(current && device)
|
327 | 397 | {
|
— | — | @@ -327,10 +397,12 @@ |
328 | 398 | Sync();
|
329 | 399 | SyncLights();
|
330 | 400 | }
|
| 401 | + TRACE_EXIT(0,0);
|
331 | 402 | }
|
332 | 403 |
|
333 | 404 | void glDirect3DViewport3::Sync()
|
334 | 405 | {
|
| 406 | + TRACE_ENTER(1,14,this);
|
335 | 407 | D3DVIEWPORT7 vp7;
|
336 | 408 | vp7.dwX = viewport.dwX;
|
337 | 409 | vp7.dwY = viewport.dwY;
|
— | — | @@ -340,10 +412,12 @@ |
341 | 413 | vp7.dvMaxZ = viewport.dvMaxZ;
|
342 | 414 | device->SetViewport(&vp7);
|
343 | 415 | device->SetScale(scaleX,scaleY);
|
| 416 | + TRACE_EXIT(0,0);
|
344 | 417 | }
|
345 | 418 |
|
346 | 419 | void glDirect3DViewport3::SyncLights()
|
347 | 420 | {
|
| 421 | + TRACE_ENTER(1,14,this);
|
348 | 422 | D3DLIGHT7 light;
|
349 | 423 | for(int i = 0; i < 8; i++)
|
350 | 424 | {
|
— | — | @@ -356,230 +430,281 @@ |
357 | 431 | }
|
358 | 432 | else device->LightEnable(i,FALSE);
|
359 | 433 | }
|
| 434 | + TRACE_EXIT(0,0);
|
360 | 435 | }
|
361 | 436 |
|
362 | 437 |
|
363 | 438 | glDirect3DViewport2::glDirect3DViewport2(glDirect3DViewport3 *glD3DV3)
|
364 | 439 | {
|
| 440 | + TRACE_ENTER(2,14,this,14,glD3DV3);
|
365 | 441 | this->glD3DV3 = glD3DV3;
|
366 | 442 | refcount = 1;
|
| 443 | + TRACE_EXIT(-1,0);
|
367 | 444 | }
|
368 | 445 |
|
369 | 446 | glDirect3DViewport2::~glDirect3DViewport2()
|
370 | 447 | {
|
| 448 | + TRACE_ENTER(1,14,this);
|
371 | 449 | glD3DV3->glD3DV2 = NULL;
|
372 | 450 | glD3DV3->Release();
|
| 451 | + TRACE_EXIT(-1,0);
|
373 | 452 | }
|
374 | 453 |
|
375 | 454 | ULONG WINAPI glDirect3DViewport2::AddRef()
|
376 | 455 | {
|
377 | | - if(!this) return 0;
|
| 456 | + TRACE_ENTER(1,14,this);
|
| 457 | + if(!this) TRACE_RET(8,0);
|
378 | 458 | refcount++;
|
| 459 | + TRACE_EXIT(8,refcount);
|
379 | 460 | return refcount;
|
380 | 461 | }
|
381 | 462 |
|
382 | 463 | ULONG WINAPI glDirect3DViewport2::Release()
|
383 | 464 | {
|
384 | | - if(!this) return 0;
|
| 465 | + TRACE_ENTER(1,14,this);
|
| 466 | + if(!this) TRACE_RET(8,0);
|
385 | 467 | ULONG ret;
|
386 | 468 | refcount--;
|
387 | 469 | ret = refcount;
|
388 | 470 | if(refcount == 0) delete this;
|
| 471 | + TRACE_ENTER(8,ret);
|
389 | 472 | return ret;
|
390 | 473 | }
|
391 | 474 |
|
392 | 475 | HRESULT WINAPI glDirect3DViewport2::QueryInterface(REFIID riid, void** ppvObj)
|
393 | 476 | {
|
394 | | - if(!this) return DDERR_INVALIDOBJECT;
|
| 477 | + TRACE_ENTER(3,14,this,24,&riid,14,ppvObj);
|
| 478 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
395 | 479 | if(riid == IID_IUnknown)
|
396 | 480 | {
|
397 | 481 | this->AddRef();
|
398 | 482 | *ppvObj = this;
|
| 483 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 484 | + TRACE_EXIT(23,D3D_OK);
|
399 | 485 | return D3D_OK;
|
400 | 486 | }
|
401 | | - return glD3DV3->QueryInterface(riid,ppvObj);
|
| 487 | + TRACE_RET(23,glD3DV3->QueryInterface(riid,ppvObj));
|
402 | 488 | }
|
403 | 489 |
|
404 | 490 | HRESULT WINAPI glDirect3DViewport2::AddLight(LPDIRECT3DLIGHT lpLight)
|
405 | 491 | {
|
406 | | - if(!this) return DDERR_INVALIDOBJECT;
|
407 | | - return glD3DV3->AddLight(lpLight);
|
| 492 | + TRACE_ENTER(2,14,this,14,lpLight);
|
| 493 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 494 | + TRACE_RET(23,glD3DV3->AddLight(lpLight));
|
408 | 495 | }
|
409 | 496 | HRESULT WINAPI glDirect3DViewport2::Clear(DWORD dwCount, LPD3DRECT lpRects, DWORD dwFlags)
|
410 | 497 | {
|
411 | | - if(!this) return DDERR_INVALIDOBJECT;
|
412 | | - return glD3DV3->Clear(dwCount,lpRects,dwFlags);
|
| 498 | + TRACE_ENTER(4,14,this,9,dwCount,14,lpRects,9,dwFlags);
|
| 499 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 500 | + TRACE_RET(23,glD3DV3->Clear(dwCount,lpRects,dwFlags));
|
413 | 501 | }
|
414 | 502 | HRESULT WINAPI glDirect3DViewport2::DeleteLight(LPDIRECT3DLIGHT lpDirect3DLight)
|
415 | 503 | {
|
416 | | - if(!this) return DDERR_INVALIDOBJECT;
|
417 | | - return glD3DV3->DeleteLight(lpDirect3DLight);
|
| 504 | + TRACE_ENTER(2,14,this,14,lpDirect3DLight);
|
| 505 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 506 | + TRACE_RET(23,glD3DV3->DeleteLight(lpDirect3DLight));
|
418 | 507 | }
|
419 | 508 | HRESULT WINAPI glDirect3DViewport2::GetBackground(LPD3DMATERIALHANDLE lphMat, LPBOOL lpValid)
|
420 | 509 | {
|
421 | | - if(!this) return DDERR_INVALIDOBJECT;
|
422 | | - return glD3DV3->GetBackground(lphMat,lpValid);
|
| 510 | + TRACE_ENTER(3,14,this,14,lphMat,14,lpValid);
|
| 511 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 512 | + TRACE_RET(23,glD3DV3->GetBackground(lphMat,lpValid));
|
423 | 513 | }
|
424 | 514 | HRESULT WINAPI glDirect3DViewport2::GetBackgroundDepth(LPDIRECTDRAWSURFACE* lplpDDSurface, LPBOOL lpValid)
|
425 | 515 | {
|
426 | | - if(!this) return DDERR_INVALIDOBJECT;
|
427 | | - return glD3DV3->GetBackgroundDepth(lplpDDSurface,lpValid);
|
| 516 | + TRACE_ENTER(3,14,this,14,lplpDDSurface,14,lpValid);
|
| 517 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 518 | + TRACE_RET(23,glD3DV3->GetBackgroundDepth(lplpDDSurface,lpValid));
|
428 | 519 | }
|
429 | 520 | HRESULT WINAPI glDirect3DViewport2::GetViewport(LPD3DVIEWPORT lpData)
|
430 | 521 | {
|
431 | | - if(!this) return DDERR_INVALIDOBJECT;
|
432 | | - return glD3DV3->GetViewport(lpData);
|
| 522 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 523 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 524 | + TRACE_RET(23,glD3DV3->GetViewport(lpData));
|
433 | 525 | }
|
434 | 526 | HRESULT WINAPI glDirect3DViewport2::GetViewport2(LPD3DVIEWPORT2 lpData)
|
435 | 527 | {
|
436 | | - if(!this) return DDERR_INVALIDOBJECT;
|
437 | | - return glD3DV3->GetViewport2(lpData);
|
| 528 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 529 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 530 | + TRACE_RET(23,glD3DV3->GetViewport2(lpData));
|
438 | 531 | }
|
439 | 532 | HRESULT WINAPI glDirect3DViewport2::Initialize(LPDIRECT3D lpDirect3D)
|
440 | 533 | {
|
441 | | - if(!this) return DDERR_INVALIDOBJECT;
|
442 | | - return glD3DV3->Initialize(lpDirect3D);
|
| 534 | + TRACE_ENTER(2,14,this,14,lpDirect3D);
|
| 535 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 536 | + TRACE_RET(23,glD3DV3->Initialize(lpDirect3D));
|
443 | 537 | }
|
444 | 538 | HRESULT WINAPI glDirect3DViewport2::LightElements(DWORD dwElementCount, LPD3DLIGHTDATA lpData)
|
445 | 539 | {
|
446 | | - if(!this) return DDERR_INVALIDOBJECT;
|
447 | | - return glD3DV3->LightElements(dwElementCount,lpData);
|
| 540 | + TRACE_ENTER(3,14,this,8,dwElementCount,14,lpData);
|
| 541 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 542 | + TRACE_RET(23,glD3DV3->LightElements(dwElementCount,lpData));
|
448 | 543 | }
|
449 | 544 | HRESULT WINAPI glDirect3DViewport2::NextLight(LPDIRECT3DLIGHT lpDirect3DLight, LPDIRECT3DLIGHT* lplpDirect3DLight, DWORD dwFlags)
|
450 | 545 | {
|
451 | | - if(!this) return DDERR_INVALIDOBJECT;
|
452 | | - return glD3DV3->NextLight(lpDirect3DLight,lplpDirect3DLight,dwFlags);
|
| 546 | + TRACE_ENTER(4,14,this,14,lpDirect3DLight,14,lplpDirect3DLight,9,dwFlags);
|
| 547 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 548 | + TRACE_RET(23,glD3DV3->NextLight(lpDirect3DLight,lplpDirect3DLight,dwFlags));
|
453 | 549 | }
|
454 | 550 | HRESULT WINAPI glDirect3DViewport2::SetBackground(D3DMATERIALHANDLE hMat)
|
455 | 551 | {
|
456 | | - if(!this) return DDERR_INVALIDOBJECT;
|
457 | | - return glD3DV3->SetBackground(hMat);
|
| 552 | + TRACE_ENTER(2,14,this,9,hMat);
|
| 553 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 554 | + TRACE_RET(23,glD3DV3->SetBackground(hMat));
|
458 | 555 | }
|
459 | 556 | HRESULT WINAPI glDirect3DViewport2::SetBackgroundDepth(LPDIRECTDRAWSURFACE lpDDSurface)
|
460 | 557 | {
|
461 | | - if(!this) return DDERR_INVALIDOBJECT;
|
462 | | - return glD3DV3->SetBackgroundDepth(lpDDSurface);
|
| 558 | + TRACE_ENTER(2,14,this,14,lpDDSurface);
|
| 559 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 560 | + TRACE_RET(23,glD3DV3->SetBackgroundDepth(lpDDSurface));
|
463 | 561 | }
|
464 | 562 | HRESULT WINAPI glDirect3DViewport2::SetViewport(LPD3DVIEWPORT lpData)
|
465 | 563 | {
|
466 | | - if(!this) return DDERR_INVALIDOBJECT;
|
467 | | - return glD3DV3->SetViewport(lpData);
|
| 564 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 565 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 566 | + TRACE_RET(23,glD3DV3->SetViewport(lpData));
|
468 | 567 | }
|
469 | 568 | HRESULT WINAPI glDirect3DViewport2::SetViewport2(LPD3DVIEWPORT2 lpData)
|
470 | 569 | {
|
471 | | - if(!this) return DDERR_INVALIDOBJECT;
|
472 | | - return glD3DV3->SetViewport2(lpData);
|
| 570 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 571 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 572 | + TRACE_RET(23,glD3DV3->SetViewport2(lpData));
|
473 | 573 | }
|
474 | 574 | HRESULT WINAPI glDirect3DViewport2::TransformVertices(DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffscreen)
|
475 | 575 | {
|
476 | | - if(!this) return DDERR_INVALIDOBJECT;
|
477 | | - return glD3DV3->TransformVertices(dwVertexCount,lpData,dwFlags,lpOffscreen);
|
| 576 | + TRACE_ENTER(5,14,this,8,dwVertexCount,14,lpData,9,dwFlags,14,lpOffscreen);
|
| 577 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 578 | + TRACE_RET(23,glD3DV3->TransformVertices(dwVertexCount,lpData,dwFlags,lpOffscreen));
|
478 | 579 | }
|
479 | 580 |
|
480 | 581 |
|
481 | 582 | glDirect3DViewport1::glDirect3DViewport1(glDirect3DViewport3 *glD3DV3)
|
482 | 583 | {
|
| 584 | + TRACE_ENTER(2,14,this,14,glD3DV3);
|
483 | 585 | this->glD3DV3 = glD3DV3;
|
484 | 586 | refcount = 1;
|
| 587 | + TRACE_EXIT(-1,0);
|
485 | 588 | }
|
486 | 589 |
|
487 | 590 | glDirect3DViewport1::~glDirect3DViewport1()
|
488 | 591 | {
|
| 592 | + TRACE_ENTER(1,14,this);
|
489 | 593 | glD3DV3->glD3DV1 = NULL;
|
490 | 594 | glD3DV3->Release();
|
| 595 | + TRACE_EXIT(-1,0);
|
491 | 596 | }
|
492 | 597 |
|
493 | 598 | ULONG WINAPI glDirect3DViewport1::AddRef()
|
494 | 599 | {
|
495 | | - if(!this) return 0;
|
| 600 | + TRACE_ENTER(1,14,this);
|
| 601 | + if(!this) TRACE_RET(8,0);
|
496 | 602 | refcount++;
|
| 603 | + TRACE_EXIT(8,refcount);
|
497 | 604 | return refcount;
|
498 | 605 | }
|
499 | 606 |
|
500 | 607 | ULONG WINAPI glDirect3DViewport1::Release()
|
501 | 608 | {
|
502 | | - if(!this) return 0;
|
| 609 | + TRACE_ENTER(1,14,this);
|
| 610 | + if(!this) TRACE_RET(8,0);
|
503 | 611 | ULONG ret;
|
504 | 612 | refcount--;
|
505 | 613 | ret = refcount;
|
506 | 614 | if(refcount == 0) delete this;
|
| 615 | + TRACE_EXIT(8,ret);
|
507 | 616 | return ret;
|
508 | 617 | }
|
509 | 618 |
|
510 | 619 | HRESULT WINAPI glDirect3DViewport1::QueryInterface(REFIID riid, void** ppvObj)
|
511 | 620 | {
|
512 | | - if(!this) return DDERR_INVALIDOBJECT;
|
| 621 | + TRACE_ENTER(3,14,this,24,&riid,14,ppvObj);
|
| 622 | + TRACE_EXIT(-1,0);
|
513 | 623 | if(riid == IID_IUnknown)
|
514 | 624 | {
|
515 | 625 | this->AddRef();
|
516 | 626 | *ppvObj = this;
|
| 627 | + TRACE_VAR("*ppvObj",14,*ppvObj);
|
| 628 | + TRACE_EXIT(23,D3D_OK);
|
517 | 629 | return D3D_OK;
|
518 | 630 | }
|
519 | | - return glD3DV3->QueryInterface(riid,ppvObj);
|
| 631 | + TRACE_RET(23,glD3DV3->QueryInterface(riid,ppvObj));
|
520 | 632 | }
|
521 | 633 |
|
522 | 634 | HRESULT WINAPI glDirect3DViewport1::AddLight(LPDIRECT3DLIGHT lpLight)
|
523 | 635 | {
|
524 | | - if(!this) return DDERR_INVALIDOBJECT;
|
525 | | - return glD3DV3->AddLight(lpLight);
|
| 636 | + TRACE_ENTER(2,14,this,14,lpLight);
|
| 637 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 638 | + TRACE_RET(23,glD3DV3->AddLight(lpLight));
|
526 | 639 | }
|
527 | 640 | HRESULT WINAPI glDirect3DViewport1::Clear(DWORD dwCount, LPD3DRECT lpRects, DWORD dwFlags)
|
528 | 641 | {
|
529 | | - if(!this) return DDERR_INVALIDOBJECT;
|
530 | | - return glD3DV3->Clear(dwCount,lpRects,dwFlags);
|
| 642 | + TRACE_ENTER(4,14,this,8,dwCount,14,lpRects,9,dwFlags);
|
| 643 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 644 | + TRACE_RET(23,glD3DV3->Clear(dwCount,lpRects,dwFlags));
|
531 | 645 | }
|
532 | 646 | HRESULT WINAPI glDirect3DViewport1::DeleteLight(LPDIRECT3DLIGHT lpDirect3DLight)
|
533 | 647 | {
|
534 | | - if(!this) return DDERR_INVALIDOBJECT;
|
535 | | - return glD3DV3->DeleteLight(lpDirect3DLight);
|
| 648 | + TRACE_ENTER(2,14,this,14,lpDirect3DLight);
|
| 649 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 650 | + TRACE_RET(23,glD3DV3->DeleteLight(lpDirect3DLight));
|
536 | 651 | }
|
537 | 652 | HRESULT WINAPI glDirect3DViewport1::GetBackground(LPD3DMATERIALHANDLE lphMat, LPBOOL lpValid)
|
538 | 653 | {
|
539 | | - if(!this) return DDERR_INVALIDOBJECT;
|
540 | | - return glD3DV3->GetBackground(lphMat,lpValid);
|
| 654 | + TRACE_ENTER(3,14,this,14,lphMat,14,lpValid);
|
| 655 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 656 | + TRACE_RET(23,glD3DV3->GetBackground(lphMat,lpValid));
|
541 | 657 | }
|
542 | 658 | HRESULT WINAPI glDirect3DViewport1::GetBackgroundDepth(LPDIRECTDRAWSURFACE* lplpDDSurface, LPBOOL lpValid)
|
543 | 659 | {
|
544 | | - if(!this) return DDERR_INVALIDOBJECT;
|
545 | | - return glD3DV3->GetBackgroundDepth(lplpDDSurface,lpValid);
|
| 660 | + TRACE_ENTER(3,14,this,14,lplpDDSurface,14,lpValid);
|
| 661 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 662 | + TRACE_RET(23,glD3DV3->GetBackgroundDepth(lplpDDSurface,lpValid));
|
546 | 663 | }
|
547 | 664 | HRESULT WINAPI glDirect3DViewport1::GetViewport(LPD3DVIEWPORT lpData)
|
548 | 665 | {
|
549 | | - if(!this) return DDERR_INVALIDOBJECT;
|
550 | | - return glD3DV3->GetViewport(lpData);
|
| 666 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 667 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 668 | + TRACE_RET(23,glD3DV3->GetViewport(lpData));
|
551 | 669 | }
|
552 | 670 | HRESULT WINAPI glDirect3DViewport1::Initialize(LPDIRECT3D lpDirect3D)
|
553 | 671 | {
|
554 | | - if(!this) return DDERR_INVALIDOBJECT;
|
555 | | - return glD3DV3->Initialize(lpDirect3D);
|
| 672 | + TRACE_ENTER(2,14,this,14,lpDirect3D);
|
| 673 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 674 | + TRACE_RET(23,glD3DV3->Initialize(lpDirect3D));
|
556 | 675 | }
|
557 | 676 | HRESULT WINAPI glDirect3DViewport1::LightElements(DWORD dwElementCount, LPD3DLIGHTDATA lpData)
|
558 | 677 | {
|
559 | | - if(!this) return DDERR_INVALIDOBJECT;
|
| 678 | + TRACE_ENTER(3,14,this,8,dwElementCount,14,lpData);
|
| 679 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
560 | 680 | return glD3DV3->LightElements(dwElementCount,lpData);
|
561 | 681 | }
|
562 | 682 | HRESULT WINAPI glDirect3DViewport1::NextLight(LPDIRECT3DLIGHT lpDirect3DLight, LPDIRECT3DLIGHT* lplpDirect3DLight, DWORD dwFlags)
|
563 | 683 | {
|
564 | | - if(!this) return DDERR_INVALIDOBJECT;
|
565 | | - return glD3DV3->NextLight(lpDirect3DLight,lplpDirect3DLight,dwFlags);
|
| 684 | + TRACE_ENTER(4,14,this,14,lpDirect3DLight,14,lplpDirect3DLight,9,dwFlags);
|
| 685 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 686 | + TRACE_RET(23,glD3DV3->NextLight(lpDirect3DLight,lplpDirect3DLight,dwFlags));
|
566 | 687 | }
|
567 | 688 | HRESULT WINAPI glDirect3DViewport1::SetBackground(D3DMATERIALHANDLE hMat)
|
568 | 689 | {
|
569 | | - if(!this) return DDERR_INVALIDOBJECT;
|
570 | | - return glD3DV3->SetBackground(hMat);
|
| 690 | + TRACE_ENTER(2,14,this,9,hMat);
|
| 691 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 692 | + TRACE_RET(23,glD3DV3->SetBackground(hMat));
|
571 | 693 | }
|
572 | 694 | HRESULT WINAPI glDirect3DViewport1::SetBackgroundDepth(LPDIRECTDRAWSURFACE lpDDSurface)
|
573 | 695 | {
|
574 | | - if(!this) return DDERR_INVALIDOBJECT;
|
575 | | - return glD3DV3->SetBackgroundDepth(lpDDSurface);
|
| 696 | + TRACE_ENTER(2,14,this,14,lpDDSurface);
|
| 697 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 698 | + TRACE_RET(23,glD3DV3->SetBackgroundDepth(lpDDSurface));
|
576 | 699 | }
|
577 | 700 | HRESULT WINAPI glDirect3DViewport1::SetViewport(LPD3DVIEWPORT lpData)
|
578 | 701 | {
|
579 | | - if(!this) return DDERR_INVALIDOBJECT;
|
580 | | - return glD3DV3->SetViewport(lpData);
|
| 702 | + TRACE_ENTER(2,14,this,14,lpData);
|
| 703 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 704 | + TRACE_RET(23,glD3DV3->SetViewport(lpData));
|
581 | 705 | }
|
582 | 706 | HRESULT WINAPI glDirect3DViewport1::TransformVertices(DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffscreen)
|
583 | 707 | {
|
584 | | - if(!this) return DDERR_INVALIDOBJECT;
|
585 | | - return glD3DV3->TransformVertices(dwVertexCount,lpData,dwFlags,lpOffscreen);
|
| 708 | + TRACE_ENTER(5,14,this,8,dwVertexCount,14,lpData,9,dwFlags,14,lpOffscreen);
|
| 709 | + if(!this) TRACE_RET(23,DDERR_INVALIDOBJECT);
|
| 710 | + TRACE_RET(23,glD3DV3->TransformVertices(dwVertexCount,lpData,dwFlags,lpOffscreen));
|
586 | 711 | }
|