Re: DirectX / COM Interfaces (Attn Matt Lewis)
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 12, 2007
- 502 views
Chris Bensler wrote: > > 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? Could have been. It was so long ago, I really don't remember. :( > 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? That could be. I've come across several things where the default interface that you get isn't the one you really wanted. Matt