[PATCH 4/9] d3drm: Implement IDirect3DRMViewport*::Init. (v5)

Aaryaman Vasishta jem456.vasishta at gmail.com
Fri Jul 15 05:45:23 CDT 2016


On Fri, Jul 15, 2016 at 4:02 PM, Aaryaman Vasishta <
jem456.vasishta at gmail.com> wrote:

>   struct d3drm_viewport
>  {
>      struct d3drm_object obj;
> +    IDirect3DRMFrame *camera;
>      IDirect3DRMViewport IDirect3DRMViewport_iface;
>      IDirect3DRMViewport2 IDirect3DRMViewport2_iface;
> +    IDirect3DViewport *d3d_viewport;
> +    IDirect3DMaterial *material;
>      IDirect3DRM *d3drm;
>      D3DVALUE back;
>      D3DVALUE front;
>
I've decided to keep the interface instead of using the struct directly,
since it'll be easier to use the interface functions for transformations
and other paramaters. Referencing the interface via the object for every
function call seems a bit redundant. Also I think refcounts should be
handled seamlessly this way.

A reference to the background material created internally is also kept
here. As Stefan had pointed out, the material is not AddRef'd since its
handle is used instead, so it's probably safer to keep the reference to
ourselves and release it when the object is destroyed.

Cheers,
Aaryaman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20160715/1a638b88/attachment.html>


More information about the wine-devel mailing list