[vlc-devel] [PATCH] Direct3D shader support (HLSL)

Sasha Koruga skoruga at gmail.com
Tue Aug 17 16:45:25 CEST 2010


Thanks, Tobias. I originally wanted to do a forward declaration (which
I frequently do with classes), but I wasn't sure how to do it with
Direct3D. I'll try that.

Regards,
Sasha

On Tue, Aug 17, 2010 at 7:30 AM, Tobias Güntner <fatbull at web.de> wrote:
> Am 16.08.2010 23:07, schrieb Sasha Koruga:
>>>> +    void*                   d3dxShader;
>>> ID3DXEffect *d3dxShader
>>> would make the code easier to read.
>>
>> Trust me, I tried. I obviously don't prefer declaring it as a void*.
>> However, including the necessary header to define ID3DXEffect* in
>> common.h is too much of a mess for it to be worth it. It conflicts
>> with other headers, etc.
>
> You only need a pointer, so a forward declaration is sufficient.
> I'm not familiar with Direct3D and COM, but I guess you could put
>        interface ID3DXEffect *d3dxShader;
> or, alternatively,
>        typedef interface ID3DXEffect ID3DXEffect;
> in common.h and #include the full definition in your *.c file.
>
> Regards,
> Tobias
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



More information about the vlc-devel mailing list