1. DirectX / COM Interfaces (Attn Matt Lewis)
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
2. Re: DirectX / COM Interfaces (Attn Matt Lewis)
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