2 * Implementation of IDirect3DRMViewport Interface
4 * Copyright 2012 André Hentschel
6 * This file contains the (internal) driver registration functions,
7 * driver enumeration APIs and DirectDraw creation functions.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "wine/debug.h"
31 #include "d3drm_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(d3drm);
36 IDirect3DRMViewport IDirect3DRMViewport_iface;
37 IDirect3DRMViewport2 IDirect3DRMViewport2_iface;
39 } IDirect3DRMViewportImpl;
41 static inline IDirect3DRMViewportImpl *impl_from_IDirect3DRMViewport(IDirect3DRMViewport *iface)
43 return CONTAINING_RECORD(iface, IDirect3DRMViewportImpl, IDirect3DRMViewport_iface);
46 static inline IDirect3DRMViewportImpl *impl_from_IDirect3DRMViewport2(IDirect3DRMViewport2 *iface)
48 return CONTAINING_RECORD(iface, IDirect3DRMViewportImpl, IDirect3DRMViewport2_iface);
51 /*** IUnknown methods ***/
52 static HRESULT WINAPI IDirect3DRMViewportImpl_QueryInterface(IDirect3DRMViewport* iface,
53 REFIID riid, void** object)
55 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
57 TRACE("(%p/%p)->(%s, %p)\n", iface, This, debugstr_guid(riid), object);
61 if (IsEqualGUID(riid, &IID_IUnknown) ||
62 IsEqualGUID(riid, &IID_IDirect3DRMViewport))
64 *object = &This->IDirect3DRMViewport_iface;
66 else if(IsEqualGUID(riid, &IID_IDirect3DRMViewport2))
68 *object = &This->IDirect3DRMViewport2_iface;
72 FIXME("interface %s not implemented\n", debugstr_guid(riid));
76 IDirect3DRMViewport_AddRef(iface);
80 static ULONG WINAPI IDirect3DRMViewportImpl_AddRef(IDirect3DRMViewport* iface)
82 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
83 ULONG ref = InterlockedIncrement(&This->ref);
85 TRACE("(%p)->(): new ref = %d\n", This, ref);
90 static ULONG WINAPI IDirect3DRMViewportImpl_Release(IDirect3DRMViewport* iface)
92 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
93 ULONG ref = InterlockedDecrement(&This->ref);
95 TRACE("(%p)->(): new ref = %d\n", This, ref);
98 HeapFree(GetProcessHeap(), 0, This);
103 /*** IDirect3DRMObject methods ***/
104 static HRESULT WINAPI IDirect3DRMViewportImpl_Clone(IDirect3DRMViewport* iface,
105 LPUNKNOWN unkwn, REFIID riid,
108 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
110 FIXME("(%p/%p)->(%p, %s, %p): stub\n", iface, This, unkwn, debugstr_guid(riid), object);
115 static HRESULT WINAPI IDirect3DRMViewportImpl_AddDestroyCallback(IDirect3DRMViewport* iface,
116 D3DRMOBJECTCALLBACK cb,
119 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
121 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, cb, argument);
126 static HRESULT WINAPI IDirect3DRMViewportImpl_DeleteDestroyCallback(IDirect3DRMViewport* iface,
127 D3DRMOBJECTCALLBACK cb,
130 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
132 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, cb, argument);
137 static HRESULT WINAPI IDirect3DRMViewportImpl_SetAppData(IDirect3DRMViewport* iface,
140 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
142 FIXME("(%p/%p)->(%u): stub\n", iface, This, data);
147 static DWORD WINAPI IDirect3DRMViewportImpl_GetAppData(IDirect3DRMViewport* iface)
149 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
151 FIXME("(%p/%p)->(): stub\n", iface, This);
156 static HRESULT WINAPI IDirect3DRMViewportImpl_SetName(IDirect3DRMViewport* iface, LPCSTR name)
158 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
160 FIXME("(%p/%p)->(%s): stub\n", iface, This, name);
165 static HRESULT WINAPI IDirect3DRMViewportImpl_GetName(IDirect3DRMViewport* iface,
166 LPDWORD size, LPSTR name)
168 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
170 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, size, name);
175 static HRESULT WINAPI IDirect3DRMViewportImpl_GetClassName(IDirect3DRMViewport* iface,
176 LPDWORD size, LPSTR name)
178 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
180 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, size, name);
185 /*** IDirect3DRMViewport methods ***/
186 static HRESULT WINAPI IDirect3DRMViewportImpl_Init(IDirect3DRMViewport* iface,
187 LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMFRAME camera,
188 DWORD xpos, DWORD ypos,
189 DWORD width, DWORD height)
191 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
193 FIXME("(%p/%p)->(%p, %p, %u, %u, %u, %u): stub\n", iface, This, dev, camera,
194 xpos, ypos, width, height);
199 static HRESULT WINAPI IDirect3DRMViewportImpl_Clear(IDirect3DRMViewport* iface)
201 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
203 FIXME("(%p/%p)->(): stub\n", iface, This);
208 static HRESULT WINAPI IDirect3DRMViewportImpl_Render(IDirect3DRMViewport* iface,
209 LPDIRECT3DRMFRAME frame)
211 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
213 FIXME("(%p/%p)->(%p): stub\n", iface, This, frame);
218 static HRESULT WINAPI IDirect3DRMViewportImpl_SetFront(IDirect3DRMViewport* iface, D3DVALUE front)
220 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
222 FIXME("(%p/%p)->(%f): stub\n", iface, This, front);
227 static HRESULT WINAPI IDirect3DRMViewportImpl_SetBack(IDirect3DRMViewport* iface, D3DVALUE back)
229 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
231 FIXME("(%p/%p)->(%f): stub\n", iface, This, back);
236 static HRESULT WINAPI IDirect3DRMViewportImpl_SetField(IDirect3DRMViewport* iface, D3DVALUE field)
238 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
240 FIXME("(%p/%p)->(%f): stub\n", iface, This, field);
245 static HRESULT WINAPI IDirect3DRMViewportImpl_SetUniformScaling(IDirect3DRMViewport* iface, BOOL b)
247 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
249 FIXME("(%p/%p)->(%d): stub\n", iface, This, b);
254 static HRESULT WINAPI IDirect3DRMViewportImpl_SetCamera(IDirect3DRMViewport* iface,
255 LPDIRECT3DRMFRAME frame)
257 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
259 FIXME("(%p/%p)->(%p): stub\n", iface, This, frame);
264 static HRESULT WINAPI IDirect3DRMViewportImpl_SetProjection(IDirect3DRMViewport* iface,
265 D3DRMPROJECTIONTYPE type)
267 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
269 FIXME("(%p/%p)->(%u): stub\n", iface, This, type);
274 static HRESULT WINAPI IDirect3DRMViewportImpl_Transform(IDirect3DRMViewport* iface,
275 D3DRMVECTOR4D *d, D3DVECTOR *s)
277 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
279 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, d, s);
284 static HRESULT WINAPI IDirect3DRMViewportImpl_InverseTransform(IDirect3DRMViewport* iface,
285 D3DVECTOR *d, D3DRMVECTOR4D *s)
287 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
289 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, d, s);
294 static HRESULT WINAPI IDirect3DRMViewportImpl_Configure(IDirect3DRMViewport* iface, LONG x, LONG y,
295 DWORD width, DWORD height)
297 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
299 FIXME("(%p/%p)->(%u, %u, %u, %u): stub\n", iface, This, x, y, width, height);
304 static HRESULT WINAPI IDirect3DRMViewportImpl_ForceUpdate(IDirect3DRMViewport* iface,
305 DWORD x1, DWORD y1, DWORD x2, DWORD y2)
307 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
309 FIXME("(%p/%p)->(%u, %u, %u, %u): stub\n", iface, This, x1, y1, x2, y2);
314 static HRESULT WINAPI IDirect3DRMViewportImpl_SetPlane(IDirect3DRMViewport* iface,
315 D3DVALUE left, D3DVALUE right,
316 D3DVALUE bottom, D3DVALUE top)
318 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
320 FIXME("(%p/%p)->(%f, %f, %f, %f): stub\n", iface, This, left, right, bottom, top);
325 static HRESULT WINAPI IDirect3DRMViewportImpl_GetCamera(IDirect3DRMViewport* iface,
326 LPDIRECT3DRMFRAME * frame)
328 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
330 FIXME("(%p/%p)->(%p): stub\n", iface, This, frame);
335 static HRESULT WINAPI IDirect3DRMViewportImpl_GetDevice(IDirect3DRMViewport* iface,
336 LPDIRECT3DRMDEVICE * device)
338 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
340 FIXME("(%p/%p)->(%p): stub\n", iface, This, device);
345 static HRESULT WINAPI IDirect3DRMViewportImpl_GetPlane(IDirect3DRMViewport* iface,
346 D3DVALUE *left, D3DVALUE *right,
347 D3DVALUE *bottom, D3DVALUE *top)
349 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
351 FIXME("(%p/%p)->(%p, %p, %p, %p): stub\n", iface, This, left, right, bottom, top);
356 static HRESULT WINAPI IDirect3DRMViewportImpl_Pick(IDirect3DRMViewport* iface, LONG x, LONG y,
357 LPDIRECT3DRMPICKEDARRAY *return_visuals)
359 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
361 FIXME("(%p/%p)->(%u, %u, %p): stub\n", iface, This, x, y, return_visuals);
366 static BOOL WINAPI IDirect3DRMViewportImpl_GetUniformScaling(IDirect3DRMViewport* iface)
368 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
370 FIXME("(%p/%p)->(): stub\n", iface, This);
375 static LONG WINAPI IDirect3DRMViewportImpl_GetX(IDirect3DRMViewport* iface)
377 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
379 FIXME("(%p/%p)->(): stub\n", iface, This);
384 static LONG WINAPI IDirect3DRMViewportImpl_GetY(IDirect3DRMViewport* iface)
386 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
388 FIXME("(%p/%p)->(): stub\n", iface, This);
393 static DWORD WINAPI IDirect3DRMViewportImpl_GetWidth(IDirect3DRMViewport* iface)
395 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
397 FIXME("(%p/%p)->(): stub\n", iface, This);
402 static DWORD WINAPI IDirect3DRMViewportImpl_GetHeight(IDirect3DRMViewport* iface)
404 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
406 FIXME("(%p/%p)->(): stub\n", iface, This);
411 static D3DVALUE WINAPI IDirect3DRMViewportImpl_GetField(IDirect3DRMViewport* iface)
413 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
415 FIXME("(%p/%p)->(): stub\n", iface, This);
420 static D3DVALUE WINAPI IDirect3DRMViewportImpl_GetBack(IDirect3DRMViewport* iface)
422 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
424 FIXME("(%p/%p)->(): stub\n", iface, This);
429 static D3DVALUE WINAPI IDirect3DRMViewportImpl_GetFront(IDirect3DRMViewport* iface)
431 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
433 FIXME("(%p/%p)->(): stub\n", iface, This);
438 static D3DRMPROJECTIONTYPE WINAPI IDirect3DRMViewportImpl_GetProjection(IDirect3DRMViewport* iface)
440 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
442 FIXME("(%p/%p)->(): stub\n", iface, This);
447 static HRESULT WINAPI IDirect3DRMViewportImpl_GetDirect3DViewport(IDirect3DRMViewport* iface,
448 LPDIRECT3DVIEWPORT * viewport)
450 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
452 FIXME("(%p/%p)->(%p): stub\n", iface, This, This);
457 static const struct IDirect3DRMViewportVtbl Direct3DRMViewport_Vtbl =
459 /*** IUnknown methods ***/
460 IDirect3DRMViewportImpl_QueryInterface,
461 IDirect3DRMViewportImpl_AddRef,
462 IDirect3DRMViewportImpl_Release,
463 /*** IDirect3DRMObject methods ***/
464 IDirect3DRMViewportImpl_Clone,
465 IDirect3DRMViewportImpl_AddDestroyCallback,
466 IDirect3DRMViewportImpl_DeleteDestroyCallback,
467 IDirect3DRMViewportImpl_SetAppData,
468 IDirect3DRMViewportImpl_GetAppData,
469 IDirect3DRMViewportImpl_SetName,
470 IDirect3DRMViewportImpl_GetName,
471 IDirect3DRMViewportImpl_GetClassName,
472 /*** IDirect3DRMViewport methods ***/
473 IDirect3DRMViewportImpl_Init,
474 IDirect3DRMViewportImpl_Clear,
475 IDirect3DRMViewportImpl_Render,
476 IDirect3DRMViewportImpl_SetFront,
477 IDirect3DRMViewportImpl_SetBack,
478 IDirect3DRMViewportImpl_SetField,
479 IDirect3DRMViewportImpl_SetUniformScaling,
480 IDirect3DRMViewportImpl_SetCamera,
481 IDirect3DRMViewportImpl_SetProjection,
482 IDirect3DRMViewportImpl_Transform,
483 IDirect3DRMViewportImpl_InverseTransform,
484 IDirect3DRMViewportImpl_Configure,
485 IDirect3DRMViewportImpl_ForceUpdate,
486 IDirect3DRMViewportImpl_SetPlane,
487 IDirect3DRMViewportImpl_GetCamera,
488 IDirect3DRMViewportImpl_GetDevice,
489 IDirect3DRMViewportImpl_GetPlane,
490 IDirect3DRMViewportImpl_Pick,
491 IDirect3DRMViewportImpl_GetUniformScaling,
492 IDirect3DRMViewportImpl_GetX,
493 IDirect3DRMViewportImpl_GetY,
494 IDirect3DRMViewportImpl_GetWidth,
495 IDirect3DRMViewportImpl_GetHeight,
496 IDirect3DRMViewportImpl_GetField,
497 IDirect3DRMViewportImpl_GetBack,
498 IDirect3DRMViewportImpl_GetFront,
499 IDirect3DRMViewportImpl_GetProjection,
500 IDirect3DRMViewportImpl_GetDirect3DViewport
504 /*** IUnknown methods ***/
505 static HRESULT WINAPI IDirect3DRMViewport2Impl_QueryInterface(IDirect3DRMViewport2* iface,
506 REFIID riid, void** object)
508 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
509 return IDirect3DRMViewport_QueryInterface(&This->IDirect3DRMViewport_iface, riid, object);
512 static ULONG WINAPI IDirect3DRMViewport2Impl_AddRef(IDirect3DRMViewport2* iface)
514 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
515 return IDirect3DRMViewport_AddRef(&This->IDirect3DRMViewport_iface);
518 static ULONG WINAPI IDirect3DRMViewport2Impl_Release(IDirect3DRMViewport2* iface)
520 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
521 return IDirect3DRMViewport_Release(&This->IDirect3DRMViewport_iface);
524 /*** IDirect3DRMObject methods ***/
525 static HRESULT WINAPI IDirect3DRMViewport2Impl_Clone(IDirect3DRMViewport2* iface,
526 LPUNKNOWN unkwn, REFIID riid,
529 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
531 FIXME("(%p/%p)->(%p, %s, %p): stub\n", iface, This, unkwn, debugstr_guid(riid), object);
536 static HRESULT WINAPI IDirect3DRMViewport2Impl_AddDestroyCallback(IDirect3DRMViewport2* iface,
537 D3DRMOBJECTCALLBACK cb,
540 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
542 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, cb, argument);
547 static HRESULT WINAPI IDirect3DRMViewport2Impl_DeleteDestroyCallback(IDirect3DRMViewport2* iface,
548 D3DRMOBJECTCALLBACK cb,
551 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
553 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, cb, argument);
558 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetAppData(IDirect3DRMViewport2* iface,
561 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
563 FIXME("(%p/%p)->(%u): stub\n", iface, This, data);
568 static DWORD WINAPI IDirect3DRMViewport2Impl_GetAppData(IDirect3DRMViewport2* iface)
570 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
572 FIXME("(%p/%p)->(): stub\n", iface, This);
577 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetName(IDirect3DRMViewport2* iface, LPCSTR name)
579 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
581 FIXME("(%p/%p)->(%s): stub\n", iface, This, name);
586 static HRESULT WINAPI IDirect3DRMViewport2Impl_GetName(IDirect3DRMViewport2* iface,
587 LPDWORD size, LPSTR name)
589 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
591 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, size, name);
596 static HRESULT WINAPI IDirect3DRMViewport2Impl_GetClassName(IDirect3DRMViewport2* iface,
597 LPDWORD size, LPSTR name)
599 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
601 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, size, name);
606 /*** IDirect3DRMViewport methods ***/
607 static HRESULT WINAPI IDirect3DRMViewport2Impl_Init(IDirect3DRMViewport2* iface,
608 LPDIRECT3DRMDEVICE3 dev, LPDIRECT3DRMFRAME3 camera,
609 DWORD xpos, DWORD ypos,
610 DWORD width, DWORD height)
612 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
614 FIXME("(%p/%p)->(%p, %p, %u, %u, %u, %u): stub\n", iface, This, dev, camera,
615 xpos, ypos, width, height);
620 static HRESULT WINAPI IDirect3DRMViewport2Impl_Clear(IDirect3DRMViewport2* iface, DWORD flags)
622 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
624 FIXME("(%p/%p)->(): stub\n", iface, This);
629 static HRESULT WINAPI IDirect3DRMViewport2Impl_Render(IDirect3DRMViewport2* iface,
630 LPDIRECT3DRMFRAME3 frame)
632 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
634 FIXME("(%p/%p)->(%p): stub\n", iface, This, frame);
639 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetFront(IDirect3DRMViewport2* iface, D3DVALUE front)
641 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
643 FIXME("(%p/%p)->(%f): stub\n", iface, This, front);
648 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetBack(IDirect3DRMViewport2* iface, D3DVALUE back)
650 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
652 FIXME("(%p/%p)->(%f): stub\n", iface, This, back);
657 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetField(IDirect3DRMViewport2* iface, D3DVALUE field)
659 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
661 FIXME("(%p/%p)->(%f): stub\n", iface, This, field);
666 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetUniformScaling(IDirect3DRMViewport2* iface, BOOL b)
668 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
670 FIXME("(%p/%p)->(%d): stub\n", iface, This, b);
675 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetCamera(IDirect3DRMViewport2* iface,
676 LPDIRECT3DRMFRAME3 frame)
678 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
680 FIXME("(%p/%p)->(%p): stub\n", iface, This, frame);
685 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetProjection(IDirect3DRMViewport2* iface,
686 D3DRMPROJECTIONTYPE type)
688 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
690 FIXME("(%p/%p)->(%u): stub\n", iface, This, type);
695 static HRESULT WINAPI IDirect3DRMViewport2Impl_Transform(IDirect3DRMViewport2* iface,
696 D3DRMVECTOR4D *d, D3DVECTOR *s)
698 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
700 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, d, s);
705 static HRESULT WINAPI IDirect3DRMViewport2Impl_InverseTransform(IDirect3DRMViewport2* iface,
706 D3DVECTOR *d, D3DRMVECTOR4D *s)
708 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
710 FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, d, s);
715 static HRESULT WINAPI IDirect3DRMViewport2Impl_Configure(IDirect3DRMViewport2* iface, LONG x, LONG y,
716 DWORD width, DWORD height)
718 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
720 FIXME("(%p/%p)->(%u, %u, %u, %u): stub\n", iface, This, x, y, width, height);
725 static HRESULT WINAPI IDirect3DRMViewport2Impl_ForceUpdate(IDirect3DRMViewport2* iface,
726 DWORD x1, DWORD y1, DWORD x2, DWORD y2)
728 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
730 FIXME("(%p/%p)->(%u, %u, %u, %u): stub\n", iface, This, x1, y1, x2, y2);
735 static HRESULT WINAPI IDirect3DRMViewport2Impl_SetPlane(IDirect3DRMViewport2* iface,
736 D3DVALUE left, D3DVALUE right,
737 D3DVALUE bottom, D3DVALUE top)
739 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
741 FIXME("(%p/%p)->(%f, %f, %f, %f): stub\n", iface, This, left, right, bottom, top);
746 static HRESULT WINAPI IDirect3DRMViewport2Impl_GetCamera(IDirect3DRMViewport2* iface,
747 LPDIRECT3DRMFRAME3 * frame)
749 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
751 FIXME("(%p/%p)->(%p): stub\n", iface, This, frame);
756 static HRESULT WINAPI IDirect3DRMViewport2Impl_GetDevice(IDirect3DRMViewport2* iface,
757 LPDIRECT3DRMDEVICE3 * device)
759 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
761 FIXME("(%p/%p)->(%p): stub\n", iface, This, device);
766 static HRESULT WINAPI IDirect3DRMViewport2Impl_GetPlane(IDirect3DRMViewport2* iface,
767 D3DVALUE *left, D3DVALUE *right,
768 D3DVALUE *bottom, D3DVALUE *top)
770 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
772 FIXME("(%p/%p)->(%p, %p, %p, %p): stub\n", iface, This, left, right, bottom, top);
777 static HRESULT WINAPI IDirect3DRMViewport2Impl_Pick(IDirect3DRMViewport2* iface, LONG x, LONG y,
778 LPDIRECT3DRMPICKEDARRAY *return_visuals)
780 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
782 FIXME("(%p/%p)->(%u, %u, %p): stub\n", iface, This, x, y, return_visuals);
787 static BOOL WINAPI IDirect3DRMViewport2Impl_GetUniformScaling(IDirect3DRMViewport2* iface)
789 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
791 FIXME("(%p/%p)->(): stub\n", iface, This);
796 static LONG WINAPI IDirect3DRMViewport2Impl_GetX(IDirect3DRMViewport2* iface)
798 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
800 FIXME("(%p/%p)->(): stub\n", iface, This);
805 static LONG WINAPI IDirect3DRMViewport2Impl_GetY(IDirect3DRMViewport2* iface)
807 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
809 FIXME("(%p/%p)->(): stub\n", iface, This);
814 static DWORD WINAPI IDirect3DRMViewport2Impl_GetWidth(IDirect3DRMViewport2* iface)
816 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
818 FIXME("(%p/%p)->(): stub\n", iface, This);
823 static DWORD WINAPI IDirect3DRMViewport2Impl_GetHeight(IDirect3DRMViewport2* iface)
825 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
827 FIXME("(%p/%p)->(): stub\n", iface, This);
832 static D3DVALUE WINAPI IDirect3DRMViewport2Impl_GetField(IDirect3DRMViewport2* iface)
834 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
836 FIXME("(%p/%p)->(): stub\n", iface, This);
841 static D3DVALUE WINAPI IDirect3DRMViewport2Impl_GetBack(IDirect3DRMViewport2* iface)
843 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
845 FIXME("(%p/%p)->(): stub\n", iface, This);
850 static D3DVALUE WINAPI IDirect3DRMViewport2Impl_GetFront(IDirect3DRMViewport2* iface)
852 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
854 FIXME("(%p/%p)->(): stub\n", iface, This);
859 static D3DRMPROJECTIONTYPE WINAPI IDirect3DRMViewport2Impl_GetProjection(IDirect3DRMViewport2* iface)
861 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
863 FIXME("(%p/%p)->(): stub\n", iface, This);
868 static HRESULT WINAPI IDirect3DRMViewport2Impl_GetDirect3DViewport(IDirect3DRMViewport2* iface,
869 LPDIRECT3DVIEWPORT * viewport)
871 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
873 FIXME("(%p/%p)->(%p): stub\n", iface, This, This);
878 /*** IDirect3DRMViewport2 methods ***/
879 static HRESULT WINAPI IDirect3DRMViewport2Impl_TransformVectors(IDirect3DRMViewport2* iface,
881 LPD3DRMVECTOR4D dstvectors,
882 LPD3DVECTOR srcvectors)
884 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
886 FIXME("(%p/%p)->(%u, %p, %p): stub\n", iface, This, numvectors, dstvectors, srcvectors);
891 static HRESULT WINAPI IDirect3DRMViewport2Impl_InverseTransformVectors(IDirect3DRMViewport2* iface,
893 LPD3DVECTOR dstvectors,
894 LPD3DRMVECTOR4D srcvectors)
896 IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport2(iface);
898 FIXME("(%p/%p)->(%u, %p, %p): stub\n", iface, This, numvectors, dstvectors, srcvectors);
903 static const struct IDirect3DRMViewport2Vtbl Direct3DRMViewport2_Vtbl =
905 /*** IUnknown methods ***/
906 IDirect3DRMViewport2Impl_QueryInterface,
907 IDirect3DRMViewport2Impl_AddRef,
908 IDirect3DRMViewport2Impl_Release,
909 /*** IDirect3DRMObject methods ***/
910 IDirect3DRMViewport2Impl_Clone,
911 IDirect3DRMViewport2Impl_AddDestroyCallback,
912 IDirect3DRMViewport2Impl_DeleteDestroyCallback,
913 IDirect3DRMViewport2Impl_SetAppData,
914 IDirect3DRMViewport2Impl_GetAppData,
915 IDirect3DRMViewport2Impl_SetName,
916 IDirect3DRMViewport2Impl_GetName,
917 IDirect3DRMViewport2Impl_GetClassName,
918 /*** IDirect3DRMViewport methods ***/
919 IDirect3DRMViewport2Impl_Init,
920 IDirect3DRMViewport2Impl_Clear,
921 IDirect3DRMViewport2Impl_Render,
922 IDirect3DRMViewport2Impl_SetFront,
923 IDirect3DRMViewport2Impl_SetBack,
924 IDirect3DRMViewport2Impl_SetField,
925 IDirect3DRMViewport2Impl_SetUniformScaling,
926 IDirect3DRMViewport2Impl_SetCamera,
927 IDirect3DRMViewport2Impl_SetProjection,
928 IDirect3DRMViewport2Impl_Transform,
929 IDirect3DRMViewport2Impl_InverseTransform,
930 IDirect3DRMViewport2Impl_Configure,
931 IDirect3DRMViewport2Impl_ForceUpdate,
932 IDirect3DRMViewport2Impl_SetPlane,
933 IDirect3DRMViewport2Impl_GetCamera,
934 IDirect3DRMViewport2Impl_GetDevice,
935 IDirect3DRMViewport2Impl_GetPlane,
936 IDirect3DRMViewport2Impl_Pick,
937 IDirect3DRMViewport2Impl_GetUniformScaling,
938 IDirect3DRMViewport2Impl_GetX,
939 IDirect3DRMViewport2Impl_GetY,
940 IDirect3DRMViewport2Impl_GetWidth,
941 IDirect3DRMViewport2Impl_GetHeight,
942 IDirect3DRMViewport2Impl_GetField,
943 IDirect3DRMViewport2Impl_GetBack,
944 IDirect3DRMViewport2Impl_GetFront,
945 IDirect3DRMViewport2Impl_GetProjection,
946 IDirect3DRMViewport2Impl_GetDirect3DViewport,
947 /*** IDirect3DRMViewport2 methods ***/
948 IDirect3DRMViewport2Impl_TransformVectors,
949 IDirect3DRMViewport2Impl_InverseTransformVectors
952 HRESULT Direct3DRMViewport_create(REFIID riid, IUnknown** ppObj)
954 IDirect3DRMViewportImpl* object;
956 TRACE("(%p)\n", ppObj);
958 object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DRMViewportImpl));
961 ERR("Out of memory\n");
962 return E_OUTOFMEMORY;
965 object->IDirect3DRMViewport_iface.lpVtbl = &Direct3DRMViewport_Vtbl;
966 object->IDirect3DRMViewport2_iface.lpVtbl = &Direct3DRMViewport2_Vtbl;
969 if (IsEqualGUID(riid, &IID_IDirect3DRMViewport2))
970 *ppObj = (IUnknown*)&object->IDirect3DRMViewport2_iface;
972 *ppObj = (IUnknown*)&object->IDirect3DRMViewport_iface;