102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
com_direct3dtexture2.c
Go to the documentation of this file.
1// Implements the IDirect3DTexture2 COM translator
2// https://archive.org/details/dx7sdk-7001
3
5#include <stdlib.h>
6
8
10
12
14
15static HRESULT __stdcall d3dtexture2_gethandle(
17 void *device,
18 DWORD *handle
19) {
20 if (handle) {
22 }
23
24 return S_OK;
25}
26
28 d3dtexture2_palettechanged,
30 DWORD start,
32)
33
35 d3dtexture2_load,
37 void *srcTexture
38)
39
41 .QueryInterface = d3dtexture2_queryinterface,
42 .AddRef = d3dtexture2_addref,
43 .Release = d3dtexture2_release,
44 .GetHandle = d3dtexture2_gethandle,
45 .PaletteChanged = d3dtexture2_palettechanged,
46 .Load = d3dtexture2_load,
47};
48
static DTTR_Graphics_COM_Direct3D7_VT vtbl
DTTR_Graphics_COM_Direct3DDevice7 void * surface
DTTR_Graphics_COM_Direct3DDevice7 * self
return S_OK
DTTR_Graphics_COM_Direct3DDevice7 void DWORD flags DWORD count
static HRESULT d3dtexture2_gethandle(DTTR_Graphics_COM_Direct3DTexture2 *self, void *device, DWORD *handle)
static DWORD d3dtexture2_next_texture_handle
DTTR_Graphics_COM_Direct3DTexture2 * dttr_graphics_com_create_direct3d_texture2(DTTR_Graphics_COM_DirectDrawSurface7 *surface)
#define DTTR_COM_NOOP_HRESULT(fn,...)
#define DTTR_COM_ADDREF(fn, type)
#define DTTR_COM_QI_SELF(fn, type)
#define DTTR_COM_RELEASE(fn, type)
DTTR_Graphics_COM_DirectDrawSurface7 * surface
DTTR_Graphics_COM_Direct3DTexture2_VT * vtbl