45 TRACE(
"Releasing attached ddraw interfaces.\n");
49 IDirectDrawSurface_Release(
device->render_target);
50 if (
device->primary_surface)
52 TRACE(
"Releasing primary surface and attached clipper.\n");
53 IDirectDrawSurface_Release(
device->primary_surface);
54 IDirectDrawClipper_Release(
device->clipper);
58 IDirectDraw_Release(
device->ddraw);
84 memset(&surface_desc, 0,
sizeof(surface_desc));
85 surface_desc.dwSize =
sizeof(surface_desc);
98 memset(&surface_desc, 0,
sizeof(surface_desc));
99 surface_desc.dwSize =
sizeof(surface_desc);
102 surface_desc.dwWidth =
width;
103 surface_desc.dwHeight =
height;
114 IDirectDrawClipper_AddRef(
clipper);
121 BOOL create_z_surface)
124 IDirectDrawSurface *
ds =
NULL;
125 IDirect3DDevice *device1 =
NULL;
126 IDirect3DDevice2 *device2 =
NULL;
127 IDirect3D2 *d3d2 =
NULL;
132 IDirectDraw_AddRef(
ddraw);
134 device->render_target = surface;
135 IDirectDrawSurface_AddRef(surface);
138 hr = IDirectDrawSurface_GetSurfaceDesc(surface, &
desc);
145 hr = IDirectDrawSurface_GetAttachedSurface(surface, &caps, &
ds);
148 create_z_surface =
FALSE;
149 IDirectDrawSurface_Release(
ds);
153 if (create_z_surface)
155 memset(&surface_desc, 0,
sizeof(surface_desc));
156 surface_desc.dwSize =
sizeof(surface_desc);
159 surface_desc.u2.dwZBufferBitDepth = 16;
160 surface_desc.dwWidth =
desc.dwWidth;
161 surface_desc.dwHeight =
desc.dwHeight;
162 hr = IDirectDraw_CreateSurface(
ddraw, &surface_desc, &
ds,
NULL);
166 hr = IDirectDrawSurface_AddAttachedSurface(surface,
ds);
167 IDirectDrawSurface_Release(
ds);
173 hr = IDirectDrawSurface_QueryInterface(surface, &IID_IDirect3DRGBDevice, (
void **)&device1);
176 IDirectDraw_QueryInterface(
ddraw, &IID_IDirect3D2, (
void**)&d3d2);
182 IDirectDrawSurface_DeleteAttachedSurface(surface, 0,
ds);
192 IDirectDrawSurface_DeleteAttachedSurface(surface, 0,
ds);
206 IDirectDrawSurface *surface;
207 IDirect3DDevice2 *d3d_device2 =
NULL;
231 IDirectDrawSurface_Release(surface);
236 hr = IDirectDrawSurface_GetSurfaceDesc(surface, &
desc);
239 IDirectDrawSurface_Release(surface);
247 device->render_target = surface;
266 *
out = &
device->IDirect3DRMDevice2_iface;
270 *
out = &
device->IDirect3DRMDevice3_iface;
274 *
out = &
device->IDirect3DRMWinDevice_iface;
310 TRACE(
"%p increasing refcount to %u.\n", iface, refcount);
319 TRACE(
"iface %p.\n", iface);
328 TRACE(
"iface %p.\n", iface);
338 TRACE(
"%p decreasing refcount to %u.\n", iface, refcount);
350 TRACE(
"iface %p.\n", iface);
359 TRACE(
"iface %p.\n", iface);
397 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
407 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
417 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
427 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
437 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
447 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
456 TRACE(
"iface %p, data %#x.\n", iface,
data);
467 TRACE(
"iface %p, data %#x.\n", iface,
data);
476 TRACE(
"iface %p, data %#x.\n", iface,
data);
485 TRACE(
"iface %p.\n", iface);
487 return device->obj.appdata;
494 TRACE(
"iface %p.\n", iface);
503 TRACE(
"iface %p.\n", iface);
622 FIXME(
"iface %p, d3d %p, d3d_device %p stub!\n", iface, d3d,
d3d_device);
658 FIXME(
"iface %p, clipper %p, guid %s, width %d, height %d stub!\n",
672 TRACE(
"iface %p, clipper %p, guid %s, width %d, height %d.\n",
684 TRACE(
"iface %p, clipper %p, guid %s, width %d, height %d.\n",
693 FIXME(
"iface %p stub!\n", iface);
700 FIXME(
"iface %p stub!\n", iface);
707 FIXME(
"iface %p stub!\n", iface);
715 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
723 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
731 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
739 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
747 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
755 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
762 FIXME(
"iface %p, count %u stub!\n", iface,
count);
787 FIXME(
"iface %p stub!\n", iface);
796 TRACE(
"iface %p.\n", iface);
805 TRACE(
"iface %p.\n", iface);
841 FIXME(
"iface %p, count %u stub!\n", iface,
count);
920 FIXME(
"iface %p, array %p stub!\n", iface,
array);
947 TRACE(
"iface %p.\n", iface);
956 TRACE(
"iface %p.\n", iface);
965 TRACE(
"iface %p.\n", iface);
972 FIXME(
"iface %p stub!\n", iface);
981 TRACE(
"iface %p.\n", iface);
990 TRACE(
"iface %p.\n", iface);
999 TRACE(
"iface %p.\n", iface);
1008 TRACE(
"iface %p.\n", iface);
1017 TRACE(
"iface %p.\n", iface);
1026 TRACE(
"iface %p.\n", iface);
1035 TRACE(
"iface %p.\n", iface);
1044 TRACE(
"iface %p.\n", iface);
1051 FIXME(
"iface %p stub!\n", iface);
1060 TRACE(
"iface %p.\n", iface);
1069 TRACE(
"iface %p.\n", iface);
1076 FIXME(
"iface %p stub!\n", iface);
1085 TRACE(
"iface %p.\n", iface);
1094 TRACE(
"iface %p.\n", iface);
1103 TRACE(
"iface %p.\n", iface);
1112 TRACE(
"iface %p.\n", iface);
1121 TRACE(
"iface %p.\n", iface);
1128 FIXME(
"iface %p stub!\n", iface);
1137 TRACE(
"iface %p.\n", iface);
1146 TRACE(
"iface %p.\n", iface);
1153 FIXME(
"iface %p stub!\n", iface);
1162 TRACE(
"iface %p.\n", iface);
1171 TRACE(
"iface %p.\n", iface);
1206 IDirect3D2 *d3d, IDirect3DDevice2 *
d3d_device)
1210 IDirect3DDevice *d3d_device1;
1234 IDirect3D2 *d3d, IDirect3DDevice2 *
d3d_device)
1244 GUID *
guid, IDirectDraw *
ddraw, IDirectDrawSurface *backbuffer)
1246 FIXME(
"iface %p, guid %s, ddraw %p, backbuffer %p stub!\n",
1253 GUID *
guid, IDirectDraw *
ddraw, IDirectDrawSurface *backbuffer)
1257 TRACE(
"iface %p, guid %s, ddraw %p, backbuffer %p.\n",
1267 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
1278 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
1287 TRACE(
"iface %p.\n", iface);
1289 return device->rendermode;
1296 TRACE(
"iface %p.\n", iface);
1328 FIXME(
"iface %p, bitdepths %u, flags %#x, pf %p stub!\n", iface, bitdepths,
flags, pf);
1352 FIXME(
"iface %p, state_class %#x, state_idx %#x, flags %p stub!\n",
1353 iface, state_class, state_idx,
flags);
1361 FIXME(
"iface %p, state_class %#x, state_idx %#x, flags %#x stub!\n",
1362 iface, state_class, state_idx,
flags);
1509 TRACE(
"iface %p.\n", iface);
1518 TRACE(
"iface %p.\n", iface);
1536 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
1544 FIXME(
"iface %p, cb %p, ctx %p stub!\n", iface,
cb,
ctx);
1553 TRACE(
"iface %p, data %#x.\n", iface,
data);
1562 TRACE(
"iface %p.\n", iface);
1596 FIXME(
"iface %p, dc %p stub!\n", iface,
dc);
1603 FIXME(
"iface %p, wparam %#x stub!\n", iface,
wparam);
1636 static const char classname[] =
"Device";
1641 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
1648 object->d3drm =
d3drm;
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define IDirect3D2_QueryInterface(p, a, b)
#define IDirect3DDevice_AddRef(p)
#define IDirect3D2_CreateDevice(p, a, b, c)
#define IDirect3DDevice2_QueryInterface(p, a, b)
#define IDirect3D_Release(p)
#define IDirect3D_QueryInterface(p, a, b)
#define IDirect3DDevice_QueryInterface(p, a, b)
#define IDirect3DDevice2_GetRenderTarget(p, a)
#define IDirect3D2_Release(p)
#define IDirect3DDevice2_Release(p)
#define IDirect3DDevice_Release(p)
#define D3DRMERR_BADVALUE
#define IDirect3DRM_Release(p)
#define D3DRMERR_BADOBJECT
#define IDirect3DRM_AddRef(p)
void d3drm_object_cleanup(IDirect3DRMObject *iface, struct d3drm_object *object)
void d3drm_object_init(struct d3drm_object *object, const char *classname)
HRESULT d3drm_object_get_name(struct d3drm_object *object, DWORD *size, char *name)
HRESULT d3drm_object_delete_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
HRESULT d3drm_object_add_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
HRESULT d3drm_object_set_name(struct d3drm_object *object, const char *name)
HRESULT d3drm_object_get_class_name(struct d3drm_object *object, DWORD *size, char *name)
enum _D3DRMTEXTUREQUALITY D3DRMTEXTUREQUALITY
void(__cdecl * D3DRMUPDATECALLBACK)(struct IDirect3DRMDevice *device, void *ctx, int count, D3DRECT *rects)
void(__cdecl * D3DRMOBJECTCALLBACK)(struct IDirect3DRMObject *obj, void *arg)
static HRESULT WINAPI d3drm_device1_AddDestroyCallback(IDirect3DRMDevice *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device2_SetName(IDirect3DRMDevice2 *iface, const char *name)
static DWORD WINAPI d3drm_device2_GetShades(IDirect3DRMDevice2 *iface)
static BOOL WINAPI d3drm_device3_GetDither(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device1_SetName(IDirect3DRMDevice *iface, const char *name)
static DWORD WINAPI d3drm_device3_GetWireframeOptions(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device2_Init(IDirect3DRMDevice2 *iface, ULONG width, ULONG height)
static HRESULT WINAPI d3drm_device2_Clone(IDirect3DRMDevice2 *iface, IUnknown *outer, REFIID iid, void **out)
static HRESULT WINAPI d3drm_device3_DeleteDestroyCallback(IDirect3DRMDevice3 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device2_GetName(IDirect3DRMDevice2 *iface, DWORD *size, char *name)
static const struct IDirect3DRMDevice2Vtbl d3drm_device2_vtbl
static HRESULT WINAPI d3drm_device3_SetStateChangeOptions(IDirect3DRMDevice3 *iface, DWORD state_class, DWORD state_idx, DWORD flags)
static HRESULT WINAPI d3drm_device2_InitFromD3D(IDirect3DRMDevice2 *iface, IDirect3D *d3d, IDirect3DDevice *d3d_device)
static HRESULT WINAPI d3drm_device_win_AddDestroyCallback(IDirect3DRMWinDevice *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device1_Init(IDirect3DRMDevice *iface, ULONG width, ULONG height)
static DWORD WINAPI d3drm_device3_GetWidth(IDirect3DRMDevice3 *iface)
static D3DCOLORMODEL WINAPI d3drm_device3_GetColorModel(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device3_SetName(IDirect3DRMDevice3 *iface, const char *name)
struct d3drm_device * unsafe_impl_from_IDirect3DRMDevice3(IDirect3DRMDevice3 *iface)
static struct d3drm_device * impl_from_IDirect3DRMDevice3(IDirect3DRMDevice3 *iface)
static D3DRMTEXTUREQUALITY WINAPI d3drm_device3_GetTextureQuality(IDirect3DRMDevice3 *iface)
static const struct IDirect3DRMDevice3Vtbl d3drm_device3_vtbl
static HRESULT WINAPI d3drm_device1_SetTextureQuality(IDirect3DRMDevice *iface, D3DRMTEXTUREQUALITY quality)
static HRESULT WINAPI d3drm_device3_GetClassName(IDirect3DRMDevice3 *iface, DWORD *size, char *name)
HRESULT d3drm_device_init(struct d3drm_device *device, UINT version, IDirectDraw *ddraw, IDirectDrawSurface *surface, BOOL create_z_surface)
static HRESULT WINAPI d3drm_device1_GetName(IDirect3DRMDevice *iface, DWORD *size, char *name)
static ULONG WINAPI d3drm_device1_Release(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device2_InitFromClipper(IDirect3DRMDevice2 *iface, IDirectDrawClipper *clipper, GUID *guid, int width, int height)
static HRESULT WINAPI d3drm_device1_GetClassName(IDirect3DRMDevice *iface, DWORD *size, char *name)
static HRESULT WINAPI d3drm_device3_SetQuality(IDirect3DRMDevice3 *iface, D3DRMRENDERQUALITY quality)
static HRESULT WINAPI d3drm_device3_Update(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device_win_QueryInterface(IDirect3DRMWinDevice *iface, REFIID riid, void **out)
static HRESULT WINAPI d3drm_device2_InitFromD3D2(IDirect3DRMDevice2 *iface, IDirect3D2 *d3d, IDirect3DDevice2 *d3d_device)
static HRESULT WINAPI d3drm_device_win_GetClassName(IDirect3DRMWinDevice *iface, DWORD *size, char *name)
static HRESULT WINAPI d3drm_device3_Init(IDirect3DRMDevice3 *iface, ULONG width, ULONG height)
static HRESULT WINAPI d3drm_device3_AddDestroyCallback(IDirect3DRMDevice3 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static DWORD WINAPI d3drm_device2_GetWidth(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device3_InitFromD3D(IDirect3DRMDevice3 *iface, IDirect3D *d3d, IDirect3DDevice *d3d_device)
static HRESULT WINAPI d3drm_device2_GetDirect3DDevice(IDirect3DRMDevice2 *iface, IDirect3DDevice **d3d_device)
static DWORD WINAPI d3drm_device1_GetAppData(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device3_FindPreferredTextureFormat(IDirect3DRMDevice3 *iface, DWORD bitdepths, DWORD flags, DDPIXELFORMAT *pf)
static struct d3drm_device * impl_from_IDirect3DRMDevice2(IDirect3DRMDevice2 *iface)
static D3DRMRENDERQUALITY WINAPI d3drm_device1_GetQuality(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device3_SetRenderMode(IDirect3DRMDevice3 *iface, DWORD flags)
static ULONG WINAPI d3drm_device3_Release(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device3_GetDirect3DDevice(IDirect3DRMDevice3 *iface, IDirect3DDevice **d3d_device)
static struct d3drm_device * impl_from_IDirect3DRMDevice(IDirect3DRMDevice *iface)
static DWORD WINAPI d3drm_device1_GetWidth(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device2_SetBufferCount(IDirect3DRMDevice2 *iface, DWORD count)
static HRESULT WINAPI d3drm_device2_InitFromSurface(IDirect3DRMDevice2 *iface, GUID *guid, IDirectDraw *ddraw, IDirectDrawSurface *backbuffer)
static ULONG WINAPI d3drm_device1_AddRef(IDirect3DRMDevice *iface)
static DWORD WINAPI d3drm_device1_GetWireframeOptions(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device1_AddUpdateCallback(IDirect3DRMDevice *iface, D3DRMUPDATECALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device1_GetViewports(IDirect3DRMDevice *iface, IDirect3DRMViewportArray **array)
static HRESULT WINAPI d3drm_device1_SetAppData(IDirect3DRMDevice *iface, DWORD data)
static HRESULT WINAPI d3drm_device_win_SetName(IDirect3DRMWinDevice *iface, const char *name)
static HRESULT WINAPI d3drm_device_win_HandlePaint(IDirect3DRMWinDevice *iface, HDC dc)
static DWORD WINAPI d3drm_device1_GetHeight(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device3_SetDither(IDirect3DRMDevice3 *iface, BOOL enable)
static const struct IDirect3DRMWinDeviceVtbl d3drm_device_win_vtbl
static DWORD WINAPI d3drm_device3_GetBufferCount(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device2_GetViewports(IDirect3DRMDevice2 *iface, IDirect3DRMViewportArray **array)
static HRESULT WINAPI d3drm_device1_DeleteDestroyCallback(IDirect3DRMDevice *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device2_GetDirect3DDevice2(IDirect3DRMDevice2 *iface, IDirect3DDevice2 **d3d_device)
static HRESULT WINAPI d3drm_device1_SetDither(IDirect3DRMDevice *iface, BOOL enable)
static HRESULT d3drm_device_set_ddraw_device_d3d(struct d3drm_device *device, IDirect3D *d3d, IDirect3DDevice *d3d_device)
static DWORD WINAPI d3drm_device3_GetTrianglesDrawn(IDirect3DRMDevice3 *iface)
static ULONG WINAPI d3drm_device2_AddRef(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device2_AddUpdateCallback(IDirect3DRMDevice2 *iface, D3DRMUPDATECALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device1_GetDirect3DDevice(IDirect3DRMDevice *iface, IDirect3DDevice **d3d_device)
static BOOL WINAPI d3drm_device2_GetDither(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device1_SetQuality(IDirect3DRMDevice *iface, D3DRMRENDERQUALITY quality)
static HRESULT WINAPI d3drm_device2_GetClassName(IDirect3DRMDevice2 *iface, DWORD *size, char *name)
static DWORD WINAPI d3drm_device2_GetWireframeOptions(IDirect3DRMDevice2 *iface)
static D3DRMRENDERQUALITY WINAPI d3drm_device2_GetQuality(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device3_InitFromD3D2(IDirect3DRMDevice3 *iface, IDirect3D2 *d3d, IDirect3DDevice2 *d3d_device)
static HRESULT WINAPI d3drm_device3_DeleteUpdateCallback(IDirect3DRMDevice3 *iface, D3DRMUPDATECALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device1_DeleteUpdateCallback(IDirect3DRMDevice *iface, D3DRMUPDATECALLBACK cb, void *ctx)
HRESULT d3drm_device_create(struct d3drm_device **device, IDirect3DRM *d3drm)
static HRESULT WINAPI d3drm_device_win_GetName(IDirect3DRMWinDevice *iface, DWORD *size, char *name)
static D3DCOLORMODEL WINAPI d3drm_device1_GetColorModel(IDirect3DRMDevice *iface)
static DWORD WINAPI d3drm_device1_GetBufferCount(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device3_GetStateChangeOptions(IDirect3DRMDevice3 *iface, DWORD state_class, DWORD state_idx, DWORD *flags)
static HRESULT WINAPI d3drm_device2_SetDither(IDirect3DRMDevice2 *iface, BOOL enable)
static DWORD WINAPI d3drm_device3_GetHeight(IDirect3DRMDevice3 *iface)
static DWORD WINAPI d3drm_device1_GetTrianglesDrawn(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device2_DeleteDestroyCallback(IDirect3DRMDevice2 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device1_Update(IDirect3DRMDevice *iface)
static DWORD WINAPI d3drm_device2_GetAppData(IDirect3DRMDevice2 *iface)
static ULONG WINAPI d3drm_device_win_Release(IDirect3DRMWinDevice *iface)
static HRESULT WINAPI d3drm_device2_SetAppData(IDirect3DRMDevice2 *iface, DWORD data)
static DWORD WINAPI d3drm_device3_GetRenderMode(IDirect3DRMDevice3 *iface)
static D3DRMTEXTUREQUALITY WINAPI d3drm_device1_GetTextureQuality(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device_win_Clone(IDirect3DRMWinDevice *iface, IUnknown *outer, REFIID iid, void **out)
void d3drm_device_destroy(struct d3drm_device *device)
static ULONG WINAPI d3drm_device_win_AddRef(IDirect3DRMWinDevice *iface)
HRESULT d3drm_device_create_surfaces_from_clipper(struct d3drm_device *object, IDirectDraw *ddraw, IDirectDrawClipper *clipper, int width, int height, IDirectDrawSurface **surface)
static ULONG WINAPI d3drm_device3_AddRef(IDirect3DRMDevice3 *iface)
static DWORD WINAPI d3drm_device2_GetHeight(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device3_GetViewports(IDirect3DRMDevice3 *iface, IDirect3DRMViewportArray **array)
static DWORD WINAPI d3drm_device2_GetTrianglesDrawn(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device3_RenderStateChange(IDirect3DRMDevice3 *iface, D3DRENDERSTATETYPE state, DWORD value, DWORD flags)
static HRESULT WINAPI d3drm_device3_SetShades(IDirect3DRMDevice3 *iface, DWORD count)
static D3DRMTEXTUREQUALITY WINAPI d3drm_device2_GetTextureQuality(IDirect3DRMDevice2 *iface)
static DWORD WINAPI d3drm_device3_GetShades(IDirect3DRMDevice3 *iface)
static D3DCOLORMODEL WINAPI d3drm_device2_GetColorModel(IDirect3DRMDevice2 *iface)
static DWORD WINAPI d3drm_device3_GetAppData(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device3_AddUpdateCallback(IDirect3DRMDevice3 *iface, D3DRMUPDATECALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device3_InitFromClipper(IDirect3DRMDevice3 *iface, IDirectDrawClipper *clipper, GUID *guid, int width, int height)
static HRESULT WINAPI d3drm_device2_SetRenderMode(IDirect3DRMDevice2 *iface, DWORD flags)
static HRESULT WINAPI d3drm_device3_LightStateChange(IDirect3DRMDevice3 *iface, D3DLIGHTSTATETYPE state, DWORD value, DWORD flags)
static D3DRMRENDERQUALITY WINAPI d3drm_device3_GetQuality(IDirect3DRMDevice3 *iface)
static HRESULT WINAPI d3drm_device2_DeleteUpdateCallback(IDirect3DRMDevice2 *iface, D3DRMUPDATECALLBACK cb, void *ctx)
static struct d3drm_device * impl_from_IDirect3DRMWinDevice(IDirect3DRMWinDevice *iface)
static HRESULT WINAPI d3drm_device2_AddDestroyCallback(IDirect3DRMDevice2 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device1_InitFromClipper(IDirect3DRMDevice *iface, IDirectDrawClipper *clipper, GUID *guid, int width, int height)
static HRESULT WINAPI d3drm_device3_SetBufferCount(IDirect3DRMDevice3 *iface, DWORD count)
static HRESULT WINAPI d3drm_device2_Update(IDirect3DRMDevice2 *iface)
static DWORD WINAPI d3drm_device2_GetBufferCount(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device_win_HandleActivate(IDirect3DRMWinDevice *iface, WORD wparam)
static BOOL WINAPI d3drm_device1_GetDither(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device3_GetDirect3DDevice2(IDirect3DRMDevice3 *iface, IDirect3DDevice2 **d3d_device)
static HRESULT WINAPI d3drm_device3_SetTextureQuality(IDirect3DRMDevice3 *iface, D3DRMTEXTUREQUALITY quality)
static HRESULT WINAPI d3drm_device3_InitFromSurface(IDirect3DRMDevice3 *iface, GUID *guid, IDirectDraw *ddraw, IDirectDrawSurface *backbuffer)
static HRESULT WINAPI d3drm_device3_Clone(IDirect3DRMDevice3 *iface, IUnknown *outer, REFIID iid, void **out)
static HRESULT WINAPI d3drm_device1_Clone(IDirect3DRMDevice *iface, IUnknown *outer, REFIID iid, void **out)
static HRESULT WINAPI d3drm_device_win_SetAppData(IDirect3DRMWinDevice *iface, DWORD data)
static HRESULT WINAPI d3drm_device2_SetQuality(IDirect3DRMDevice2 *iface, D3DRMRENDERQUALITY quality)
static DWORD WINAPI d3drm_device2_GetRenderMode(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device_win_DeleteDestroyCallback(IDirect3DRMWinDevice *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_device2_QueryInterface(IDirect3DRMDevice2 *iface, REFIID riid, void **out)
static HRESULT WINAPI d3drm_device1_QueryInterface(IDirect3DRMDevice *iface, REFIID riid, void **out)
static DWORD WINAPI d3drm_device1_GetShades(IDirect3DRMDevice *iface)
static HRESULT WINAPI d3drm_device2_SetTextureQuality(IDirect3DRMDevice2 *iface, D3DRMTEXTUREQUALITY quality)
static HRESULT WINAPI d3drm_device2_SetShades(IDirect3DRMDevice2 *iface, DWORD count)
static HRESULT WINAPI d3drm_device1_SetBufferCount(IDirect3DRMDevice *iface, DWORD count)
static HRESULT WINAPI d3drm_device3_QueryInterface(IDirect3DRMDevice3 *iface, REFIID riid, void **out)
static ULONG WINAPI d3drm_device2_Release(IDirect3DRMDevice2 *iface)
static HRESULT WINAPI d3drm_device1_SetShades(IDirect3DRMDevice *iface, DWORD count)
static HRESULT WINAPI d3drm_device3_SetAppData(IDirect3DRMDevice3 *iface, DWORD data)
static HRESULT WINAPI d3drm_device3_GetName(IDirect3DRMDevice3 *iface, DWORD *size, char *name)
static const struct IDirect3DRMDeviceVtbl d3drm_device1_vtbl
static DWORD WINAPI d3drm_device_win_GetAppData(IDirect3DRMWinDevice *iface)
static HRESULT WINAPI d3drm_device1_InitFromD3D(IDirect3DRMDevice *iface, IDirect3D *d3d, IDirect3DDevice *d3d_device)
static const WCHAR version[]
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
static const WCHAR desc[]
static HMODULE MODULEINFO DWORD cb
static IHTMLWindow2 * window
#define IsEqualGUID(rguid1, rguid2)
#define DDSCAPS_PRIMARYSURFACE
#define DDSD_ZBUFFERBITDEPTH
#define DDERR_INVALIDCAPS
#define DDSCAPS_OFFSCREENPLAIN
IDirect3DRMDevice IDirect3DRMDevice_iface
IDirectDrawSurface * render_target
IDirect3DRMWinDevice IDirect3DRMWinDevice_iface
IDirectDrawClipper * clipper
IDirect3DRMDevice2 IDirect3DRMDevice2_iface
IDirect3DRMDevice3 IDirect3DRMDevice3_iface
IDirectDrawSurface * primary_surface
#define CONTAINING_RECORD(address, type, field)
#define CLASS_E_CLASSNOTAVAILABLE