-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFakeDirect3DDevice9.cpp
616 lines (495 loc) · 21.3 KB
/
FakeDirect3DDevice9.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
#include "FakeDirect3DDevice9.h"
FakeDirect3DDevice9::FakeDirect3DDevice9(IDirect3DDevice9* pOriginal) :
m_pIDirect3DDevice9(pOriginal)
{
}
FakeDirect3DDevice9::~FakeDirect3DDevice9(void)
{
}
HRESULT FakeDirect3DDevice9::QueryInterface(REFIID riid, void** ppvObj)
{
*ppvObj = NULL;
HRESULT hRes = m_pIDirect3DDevice9->QueryInterface(riid, ppvObj);
if (SUCCEEDED(hRes))
*ppvObj = this;
return(hRes);
}
ULONG FakeDirect3DDevice9::AddRef(void)
{
return(m_pIDirect3DDevice9->AddRef());
}
ULONG FakeDirect3DDevice9::Release(void)
{
ULONG count = m_pIDirect3DDevice9->Release();
if (count < 1)
delete(this); // destructor will be called automatically
return(count);
}
HRESULT FakeDirect3DDevice9::TestCooperativeLevel(void)
{
return(m_pIDirect3DDevice9->TestCooperativeLevel());
}
UINT FakeDirect3DDevice9::GetAvailableTextureMem(void)
{
UINT ret = m_pIDirect3DDevice9->GetAvailableTextureMem();
if (ret > (UINT)INT_MAX)
ret = (UINT)INT_MAX;
return(ret);
// return(m_pIDirect3DDevice9->GetAvailableTextureMem());
}
HRESULT FakeDirect3DDevice9::EvictManagedResources(void)
{
return(m_pIDirect3DDevice9->EvictManagedResources());
}
HRESULT FakeDirect3DDevice9::GetDirect3D(IDirect3D9** ppD3D9)
{
return(m_pIDirect3DDevice9->GetDirect3D(ppD3D9));
}
HRESULT FakeDirect3DDevice9::GetDeviceCaps(D3DCAPS9* pCaps)
{
return(m_pIDirect3DDevice9->GetDeviceCaps(pCaps));
}
HRESULT FakeDirect3DDevice9::GetDisplayMode(UINT iSwapChain, D3DDISPLAYMODE* pMode)
{
return(m_pIDirect3DDevice9->GetDisplayMode(iSwapChain, pMode));
}
HRESULT FakeDirect3DDevice9::GetCreationParameters(D3DDEVICE_CREATION_PARAMETERS* pParameters)
{
return(m_pIDirect3DDevice9->GetCreationParameters(pParameters));
}
HRESULT FakeDirect3DDevice9::SetCursorProperties(UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap)
{
return(m_pIDirect3DDevice9->SetCursorProperties(XHotSpot, YHotSpot, pCursorBitmap));
}
void FakeDirect3DDevice9::SetCursorPosition(int X, int Y, DWORD Flags)
{
return(m_pIDirect3DDevice9->SetCursorPosition(X, Y, Flags));
}
BOOL FakeDirect3DDevice9::ShowCursor(BOOL bShow)
{
return(m_pIDirect3DDevice9->ShowCursor(bShow));
}
HRESULT FakeDirect3DDevice9::CreateAdditionalSwapChain(D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain)
{
return(m_pIDirect3DDevice9->CreateAdditionalSwapChain(pPresentationParameters, pSwapChain));
}
HRESULT FakeDirect3DDevice9::GetSwapChain(UINT iSwapChain, IDirect3DSwapChain9** pSwapChain)
{
return(m_pIDirect3DDevice9->GetSwapChain(iSwapChain, pSwapChain));
}
UINT FakeDirect3DDevice9::GetNumberOfSwapChains(void)
{
return(m_pIDirect3DDevice9->GetNumberOfSwapChains());
}
HRESULT FakeDirect3DDevice9::Reset(D3DPRESENT_PARAMETERS* pPresentationParameters)
{
return(m_pIDirect3DDevice9->Reset(pPresentationParameters));
}
HRESULT FakeDirect3DDevice9::Present(CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion)
{
return (m_pIDirect3DDevice9->Present(pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion));
}
HRESULT FakeDirect3DDevice9::GetBackBuffer(UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer)
{
return(m_pIDirect3DDevice9->GetBackBuffer(iSwapChain, iBackBuffer, Type, ppBackBuffer));
}
HRESULT FakeDirect3DDevice9::GetRasterStatus(UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus)
{
return(m_pIDirect3DDevice9->GetRasterStatus(iSwapChain, pRasterStatus));
}
HRESULT FakeDirect3DDevice9::SetDialogBoxMode(BOOL bEnableDialogs)
{
return(m_pIDirect3DDevice9->SetDialogBoxMode(bEnableDialogs));
}
void FakeDirect3DDevice9::SetGammaRamp(UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP* pRamp)
{
return(m_pIDirect3DDevice9->SetGammaRamp(iSwapChain, Flags, pRamp));
}
void FakeDirect3DDevice9::GetGammaRamp(UINT iSwapChain, D3DGAMMARAMP* pRamp)
{
return(m_pIDirect3DDevice9->GetGammaRamp(iSwapChain, pRamp));
}
HRESULT FakeDirect3DDevice9::CreateTexture(UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateTexture(Width, Height, Levels, Usage, Format, Pool, ppTexture, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::CreateVolumeTexture(UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateVolumeTexture(Width, Height, Depth, Levels, Usage, Format, Pool, ppVolumeTexture, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::CreateCubeTexture(UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateCubeTexture(EdgeLength, Levels, Usage, Format, Pool, ppCubeTexture, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::CreateVertexBuffer(UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateVertexBuffer(Length, Usage, FVF, Pool, ppVertexBuffer, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::CreateIndexBuffer(UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateIndexBuffer(Length, Usage, Format, Pool, ppIndexBuffer, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::CreateRenderTarget(UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateRenderTarget(Width, Height, Format, MultiSample, MultisampleQuality, Lockable, ppSurface, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::CreateDepthStencilSurface(UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateDepthStencilSurface(Width, Height, Format, MultiSample, MultisampleQuality, Discard, ppSurface, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::UpdateSurface(IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestinationSurface, CONST POINT* pDestPoint)
{
return(m_pIDirect3DDevice9->UpdateSurface(pSourceSurface, pSourceRect, pDestinationSurface, pDestPoint));
}
HRESULT FakeDirect3DDevice9::UpdateTexture(IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture)
{
return(m_pIDirect3DDevice9->UpdateTexture(pSourceTexture, pDestinationTexture));
}
HRESULT FakeDirect3DDevice9::GetRenderTargetData(IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface)
{
return(m_pIDirect3DDevice9->GetRenderTargetData(pRenderTarget, pDestSurface));
}
HRESULT FakeDirect3DDevice9::GetFrontBufferData(UINT iSwapChain, IDirect3DSurface9* pDestSurface)
{
return(m_pIDirect3DDevice9->GetFrontBufferData(iSwapChain, pDestSurface));
}
HRESULT FakeDirect3DDevice9::StretchRect(IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestSurface, CONST RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter)
{
return(m_pIDirect3DDevice9->StretchRect(pSourceSurface, pSourceRect, pDestSurface, pDestRect, Filter));
}
HRESULT FakeDirect3DDevice9::ColorFill(IDirect3DSurface9* pSurface, CONST RECT* pRect, D3DCOLOR color)
{
return(m_pIDirect3DDevice9->ColorFill(pSurface, pRect, color));
}
HRESULT FakeDirect3DDevice9::CreateOffscreenPlainSurface(UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle)
{
return(m_pIDirect3DDevice9->CreateOffscreenPlainSurface(Width, Height, Format, Pool, ppSurface, pSharedHandle));
}
HRESULT FakeDirect3DDevice9::SetRenderTarget(DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget)
{
return(m_pIDirect3DDevice9->SetRenderTarget(RenderTargetIndex, pRenderTarget));
}
HRESULT FakeDirect3DDevice9::GetRenderTarget(DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget)
{
return(m_pIDirect3DDevice9->GetRenderTarget(RenderTargetIndex, ppRenderTarget));
}
HRESULT FakeDirect3DDevice9::SetDepthStencilSurface(IDirect3DSurface9* pNewZStencil)
{
return(m_pIDirect3DDevice9->SetDepthStencilSurface(pNewZStencil));
}
HRESULT FakeDirect3DDevice9::GetDepthStencilSurface(IDirect3DSurface9** ppZStencilSurface)
{
return(m_pIDirect3DDevice9->GetDepthStencilSurface(ppZStencilSurface));
}
HRESULT FakeDirect3DDevice9::BeginScene(void)
{
return(m_pIDirect3DDevice9->BeginScene());
}
HRESULT FakeDirect3DDevice9::EndScene(void)
{
return(m_pIDirect3DDevice9->EndScene());
}
HRESULT FakeDirect3DDevice9::Clear(DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil)
{
return(m_pIDirect3DDevice9->Clear(Count, pRects, Flags, Color, Z, Stencil));
}
HRESULT FakeDirect3DDevice9::SetTransform(D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix)
{
return(m_pIDirect3DDevice9->SetTransform(State, pMatrix));
}
HRESULT FakeDirect3DDevice9::GetTransform(D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix)
{
return(m_pIDirect3DDevice9->GetTransform(State, pMatrix));
}
HRESULT FakeDirect3DDevice9::MultiplyTransform(D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix)
{
return(m_pIDirect3DDevice9->MultiplyTransform(State, pMatrix));
}
HRESULT FakeDirect3DDevice9::SetViewport(CONST D3DVIEWPORT9* pViewport)
{
return(m_pIDirect3DDevice9->SetViewport(pViewport));
}
HRESULT FakeDirect3DDevice9::GetViewport(D3DVIEWPORT9* pViewport)
{
return(m_pIDirect3DDevice9->GetViewport(pViewport));
}
HRESULT FakeDirect3DDevice9::SetMaterial(CONST D3DMATERIAL9* pMaterial)
{
return(m_pIDirect3DDevice9->SetMaterial(pMaterial));
}
HRESULT FakeDirect3DDevice9::GetMaterial(D3DMATERIAL9* pMaterial)
{
return(m_pIDirect3DDevice9->GetMaterial(pMaterial));
}
HRESULT FakeDirect3DDevice9::SetLight(DWORD Index, CONST D3DLIGHT9* pLight)
{
return(m_pIDirect3DDevice9->SetLight(Index, pLight));
}
HRESULT FakeDirect3DDevice9::GetLight(DWORD Index, D3DLIGHT9* pLight)
{
return(m_pIDirect3DDevice9->GetLight(Index, pLight));
}
HRESULT FakeDirect3DDevice9::LightEnable(DWORD Index, BOOL Enable)
{
return(m_pIDirect3DDevice9->LightEnable(Index, Enable));
}
HRESULT FakeDirect3DDevice9::GetLightEnable(DWORD Index, BOOL* pEnable)
{
return(m_pIDirect3DDevice9->GetLightEnable(Index, pEnable));
}
HRESULT FakeDirect3DDevice9::SetClipPlane(DWORD Index, CONST float* pPlane)
{
return(m_pIDirect3DDevice9->SetClipPlane(Index, pPlane));
}
HRESULT FakeDirect3DDevice9::GetClipPlane(DWORD Index, float* pPlane)
{
return(m_pIDirect3DDevice9->GetClipPlane(Index, pPlane));
}
HRESULT FakeDirect3DDevice9::SetRenderState(D3DRENDERSTATETYPE State, DWORD Value)
{
return(m_pIDirect3DDevice9->SetRenderState(State, Value));
}
HRESULT FakeDirect3DDevice9::GetRenderState(D3DRENDERSTATETYPE State, DWORD* pValue)
{
return(m_pIDirect3DDevice9->GetRenderState(State, pValue));
}
HRESULT FakeDirect3DDevice9::CreateStateBlock(D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB)
{
return(m_pIDirect3DDevice9->CreateStateBlock(Type, ppSB));
}
HRESULT FakeDirect3DDevice9::BeginStateBlock(void)
{
return(m_pIDirect3DDevice9->BeginStateBlock());
}
HRESULT FakeDirect3DDevice9::EndStateBlock(IDirect3DStateBlock9** ppSB)
{
return(m_pIDirect3DDevice9->EndStateBlock(ppSB));
}
HRESULT FakeDirect3DDevice9::SetClipStatus(CONST D3DCLIPSTATUS9* pClipStatus)
{
return(m_pIDirect3DDevice9->SetClipStatus(pClipStatus));
}
HRESULT FakeDirect3DDevice9::GetClipStatus(D3DCLIPSTATUS9* pClipStatus)
{
return(m_pIDirect3DDevice9->GetClipStatus(pClipStatus));
}
HRESULT FakeDirect3DDevice9::GetTexture(DWORD Stage, IDirect3DBaseTexture9** ppTexture)
{
return(m_pIDirect3DDevice9->GetTexture(Stage, ppTexture));
}
HRESULT FakeDirect3DDevice9::SetTexture(DWORD Stage, IDirect3DBaseTexture9* pTexture)
{
return(m_pIDirect3DDevice9->SetTexture(Stage, pTexture));
}
HRESULT FakeDirect3DDevice9::GetTextureStageState(DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue)
{
return(m_pIDirect3DDevice9->GetTextureStageState(Stage, Type, pValue));
}
HRESULT FakeDirect3DDevice9::SetTextureStageState(DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value)
{
return(m_pIDirect3DDevice9->SetTextureStageState(Stage, Type, Value));
}
HRESULT FakeDirect3DDevice9::GetSamplerState(DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue)
{
return(m_pIDirect3DDevice9->GetSamplerState(Sampler, Type, pValue));
}
HRESULT FakeDirect3DDevice9::SetSamplerState(DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value)
{
return(m_pIDirect3DDevice9->SetSamplerState(Sampler, Type, Value));
}
HRESULT FakeDirect3DDevice9::ValidateDevice(DWORD* pNumPasses)
{
return(m_pIDirect3DDevice9->ValidateDevice(pNumPasses));
}
HRESULT FakeDirect3DDevice9::SetPaletteEntries(UINT PaletteNumber, CONST PALETTEENTRY* pEntries)
{
return(m_pIDirect3DDevice9->SetPaletteEntries(PaletteNumber, pEntries));
}
HRESULT FakeDirect3DDevice9::GetPaletteEntries(UINT PaletteNumber, PALETTEENTRY* pEntries)
{
return(m_pIDirect3DDevice9->GetPaletteEntries(PaletteNumber, pEntries));
}
HRESULT FakeDirect3DDevice9::SetCurrentTexturePalette(UINT PaletteNumber)
{
return(m_pIDirect3DDevice9->SetCurrentTexturePalette(PaletteNumber));
}
HRESULT FakeDirect3DDevice9::GetCurrentTexturePalette(UINT* PaletteNumber)
{
return(m_pIDirect3DDevice9->GetCurrentTexturePalette(PaletteNumber));
}
HRESULT FakeDirect3DDevice9::SetScissorRect(CONST RECT* pRect)
{
return(m_pIDirect3DDevice9->SetScissorRect(pRect));
}
HRESULT FakeDirect3DDevice9::GetScissorRect(RECT* pRect)
{
return(m_pIDirect3DDevice9->GetScissorRect(pRect));
}
HRESULT FakeDirect3DDevice9::SetSoftwareVertexProcessing(BOOL bSoftware)
{
return(m_pIDirect3DDevice9->SetSoftwareVertexProcessing(bSoftware));
}
BOOL FakeDirect3DDevice9::GetSoftwareVertexProcessing(void)
{
return(m_pIDirect3DDevice9->GetSoftwareVertexProcessing());
}
HRESULT FakeDirect3DDevice9::SetNPatchMode(float nSegments)
{
return(m_pIDirect3DDevice9->SetNPatchMode(nSegments));
}
float FakeDirect3DDevice9::GetNPatchMode(void)
{
return(m_pIDirect3DDevice9->GetNPatchMode());
}
HRESULT FakeDirect3DDevice9::DrawPrimitive(D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount)
{
return(m_pIDirect3DDevice9->DrawPrimitive(PrimitiveType, StartVertex, PrimitiveCount));
}
HRESULT FakeDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
return(m_pIDirect3DDevice9->DrawIndexedPrimitive(PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount));
}
HRESULT FakeDirect3DDevice9::DrawPrimitiveUP(D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride)
{
return(m_pIDirect3DDevice9->DrawPrimitiveUP(PrimitiveType, PrimitiveCount, pVertexStreamZeroData, VertexStreamZeroStride));
}
HRESULT FakeDirect3DDevice9::DrawIndexedPrimitiveUP(D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, CONST void* pIndexData, D3DFORMAT IndexDataFormat, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride)
{
return(m_pIDirect3DDevice9->DrawIndexedPrimitiveUP(PrimitiveType, MinVertexIndex, NumVertices, PrimitiveCount, pIndexData, IndexDataFormat, pVertexStreamZeroData, VertexStreamZeroStride));
}
HRESULT FakeDirect3DDevice9::ProcessVertices(UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags)
{
return(m_pIDirect3DDevice9->ProcessVertices(SrcStartIndex, DestIndex, VertexCount, pDestBuffer, pVertexDecl, Flags));
}
HRESULT FakeDirect3DDevice9::CreateVertexDeclaration(CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl)
{
return(m_pIDirect3DDevice9->CreateVertexDeclaration(pVertexElements, ppDecl));
}
HRESULT FakeDirect3DDevice9::SetVertexDeclaration(IDirect3DVertexDeclaration9* pDecl)
{
return(m_pIDirect3DDevice9->SetVertexDeclaration(pDecl));
}
HRESULT FakeDirect3DDevice9::GetVertexDeclaration(IDirect3DVertexDeclaration9** ppDecl)
{
return(m_pIDirect3DDevice9->GetVertexDeclaration(ppDecl));
}
HRESULT FakeDirect3DDevice9::SetFVF(DWORD FVF)
{
return(m_pIDirect3DDevice9->SetFVF(FVF));
}
HRESULT FakeDirect3DDevice9::GetFVF(DWORD* pFVF)
{
return(m_pIDirect3DDevice9->GetFVF(pFVF));
}
HRESULT FakeDirect3DDevice9::CreateVertexShader(CONST DWORD* pFunction, IDirect3DVertexShader9** ppShader)
{
return(m_pIDirect3DDevice9->CreateVertexShader(pFunction, ppShader));
}
HRESULT FakeDirect3DDevice9::SetVertexShader(IDirect3DVertexShader9* pShader)
{
return(m_pIDirect3DDevice9->SetVertexShader(pShader));
}
HRESULT FakeDirect3DDevice9::GetVertexShader(IDirect3DVertexShader9** ppShader)
{
return(m_pIDirect3DDevice9->GetVertexShader(ppShader));
}
HRESULT FakeDirect3DDevice9::SetVertexShaderConstantF(UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount)
{
return(m_pIDirect3DDevice9->SetVertexShaderConstantF(StartRegister, pConstantData, Vector4fCount));
}
HRESULT FakeDirect3DDevice9::GetVertexShaderConstantF(UINT StartRegister, float* pConstantData, UINT Vector4fCount)
{
return(m_pIDirect3DDevice9->GetVertexShaderConstantF(StartRegister, pConstantData, Vector4fCount));
}
HRESULT FakeDirect3DDevice9::SetVertexShaderConstantI(UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount)
{
return(m_pIDirect3DDevice9->SetVertexShaderConstantI(StartRegister, pConstantData, Vector4iCount));
}
HRESULT FakeDirect3DDevice9::GetVertexShaderConstantI(UINT StartRegister, int* pConstantData, UINT Vector4iCount)
{
return(m_pIDirect3DDevice9->GetVertexShaderConstantI(StartRegister, pConstantData, Vector4iCount));
}
HRESULT FakeDirect3DDevice9::SetVertexShaderConstantB(UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount)
{
return(m_pIDirect3DDevice9->SetVertexShaderConstantB(StartRegister, pConstantData, BoolCount));
}
HRESULT FakeDirect3DDevice9::GetVertexShaderConstantB(UINT StartRegister, BOOL* pConstantData, UINT BoolCount)
{
return(m_pIDirect3DDevice9->GetVertexShaderConstantB(StartRegister, pConstantData, BoolCount));
}
HRESULT FakeDirect3DDevice9::SetStreamSource(UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride)
{
return(m_pIDirect3DDevice9->SetStreamSource(StreamNumber, pStreamData, OffsetInBytes, Stride));
}
HRESULT FakeDirect3DDevice9::GetStreamSource(UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* OffsetInBytes, UINT* pStride)
{
return(m_pIDirect3DDevice9->GetStreamSource(StreamNumber, ppStreamData, OffsetInBytes, pStride));
}
HRESULT FakeDirect3DDevice9::SetStreamSourceFreq(UINT StreamNumber, UINT Divider)
{
return(m_pIDirect3DDevice9->SetStreamSourceFreq(StreamNumber, Divider));
}
HRESULT FakeDirect3DDevice9::GetStreamSourceFreq(UINT StreamNumber, UINT* Divider)
{
return(m_pIDirect3DDevice9->GetStreamSourceFreq(StreamNumber, Divider));
}
HRESULT FakeDirect3DDevice9::SetIndices(IDirect3DIndexBuffer9* pIndexData)
{
return(m_pIDirect3DDevice9->SetIndices(pIndexData));
}
HRESULT FakeDirect3DDevice9::GetIndices(IDirect3DIndexBuffer9** ppIndexData)
{
return(m_pIDirect3DDevice9->GetIndices(ppIndexData));
}
HRESULT FakeDirect3DDevice9::CreatePixelShader(CONST DWORD* pFunction, IDirect3DPixelShader9** ppShader)
{
return(m_pIDirect3DDevice9->CreatePixelShader(pFunction, ppShader));
}
HRESULT FakeDirect3DDevice9::SetPixelShader(IDirect3DPixelShader9* pShader)
{
return(m_pIDirect3DDevice9->SetPixelShader(pShader));
}
HRESULT FakeDirect3DDevice9::GetPixelShader(IDirect3DPixelShader9** ppShader)
{
return(m_pIDirect3DDevice9->GetPixelShader(ppShader));
}
HRESULT FakeDirect3DDevice9::SetPixelShaderConstantF(UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount)
{
return(m_pIDirect3DDevice9->SetPixelShaderConstantF(StartRegister, pConstantData, Vector4fCount));
}
HRESULT FakeDirect3DDevice9::GetPixelShaderConstantF(UINT StartRegister, float* pConstantData, UINT Vector4fCount)
{
return(m_pIDirect3DDevice9->GetPixelShaderConstantF(StartRegister, pConstantData, Vector4fCount));
}
HRESULT FakeDirect3DDevice9::SetPixelShaderConstantI(UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount)
{
return(m_pIDirect3DDevice9->SetPixelShaderConstantI(StartRegister, pConstantData, Vector4iCount));
}
HRESULT FakeDirect3DDevice9::GetPixelShaderConstantI(UINT StartRegister, int* pConstantData, UINT Vector4iCount)
{
return(m_pIDirect3DDevice9->GetPixelShaderConstantI(StartRegister, pConstantData, Vector4iCount));
}
HRESULT FakeDirect3DDevice9::SetPixelShaderConstantB(UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount)
{
return(m_pIDirect3DDevice9->SetPixelShaderConstantB(StartRegister, pConstantData, BoolCount));
}
HRESULT FakeDirect3DDevice9::GetPixelShaderConstantB(UINT StartRegister, BOOL* pConstantData, UINT BoolCount)
{
return(m_pIDirect3DDevice9->GetPixelShaderConstantB(StartRegister, pConstantData, BoolCount));
}
HRESULT FakeDirect3DDevice9::DrawRectPatch(UINT Handle, CONST float* pNumSegs, CONST D3DRECTPATCH_INFO* pRectPatchInfo)
{
return(m_pIDirect3DDevice9->DrawRectPatch(Handle, pNumSegs, pRectPatchInfo));
}
HRESULT FakeDirect3DDevice9::DrawTriPatch(UINT Handle, CONST float* pNumSegs, CONST D3DTRIPATCH_INFO* pTriPatchInfo)
{
return(m_pIDirect3DDevice9->DrawTriPatch(Handle, pNumSegs, pTriPatchInfo));
}
HRESULT FakeDirect3DDevice9::DeletePatch(UINT Handle)
{
return(m_pIDirect3DDevice9->DeletePatch(Handle));
}
HRESULT FakeDirect3DDevice9::CreateQuery(D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery)
{
return(m_pIDirect3DDevice9->CreateQuery(Type, ppQuery));
}