DirectX / COM Interfaces (Attn Matt Lewis)
- Posted by Chris Bensler <bensler at nt.net> Feb 12, 2007
- 507 views
I'm playing with DirectX and have ported some of the SDK demos.. I've run into a snag trying to create a vertex buffer. It appears that the interface pointer that is returned is not valid. Other interfaces seem to work, though I haven't extensively tested. I've noticed that your (Matt's) directX8 dxdemo.exw avoids using a vertex buffer resource and opts for a user defined buffer and calls DrawPrimitiveUP. Is this for the reason I've mentioned? Do you have any idea why it might be failing to create a vertex buffer resource? I'm thinking that I may need to use QueryInterface to resolve the interface inheritance? Chris Bensler ~ The difference between ordinary and extraordinary is that little extra ~ http://empire.iwireweb.com - Empire for Euphoria