S
ShahMat
Guest
I'm working on a DX8 sprite engine using TriangleStrips as textured quads (somebody said that the MS implementation of DXSprite was screwed up and that tiles wouldn't line up correctly with it) but I can't get it to work correctly. I keep implementing my vertices as an array of D3DTLVERTEX UDTs, as I've seen in several tutorials, but the type library keeps insisting that the first element in the array when calling DrawPrimitive (DrawPrimitiveUP) should be an IntPtr. I've tried and tried to create an IntPtr to the first element of the D3DTLVERTEX array and nothing seems to work. Is there something I'm missing that can do a type conversion in this case or should I just write a wrapper for this function (and a few others) in VB6 and import them as a COM dll?
PS I'm not sure if this should go in the DirectX forum or the .Net forum, but as the problem is with the .Net type library, I figured this was the best place for it.
PS I'm not sure if this should go in the DirectX forum or the .Net forum, but as the problem is with the .Net type library, I figured this was the best place for it.