25 Jun
2010
25 Jun
'10
noon
On 25 June 2010 18:14, Misha Koshelev <misha680(a)gmail.com> wrote:
If I do not declare these functions, how do I call the Release method of the appropriate interfaces?
Specifically, I started looking at the test for line.c - I believe that if I create a mesh, I have to release it.
If it's just about releasing the interface, using the generic IUnknown_Release macro should always work. The larger issue though is that most (all?) of the d3dx9 interfaces don't have corresponding C macros. That means you'll have to call those functions explicitly through lpVtbl in C, but you'd have to do that when using the MS headers as well.