Quick question about ID3DXSprites.
Hello. I am making a 2D sidescrolling game with Visual Basic.NET and DirectX 9, and I just have a quick question,
Are there any differences whatsoever between D3DXSprites and ID3DXSprites? This may seem like a trivial question, but I really need to know.
Thing is that I cannot find the ID3DXSprite class when declaring my Sprite object, you know: "Dim MySprite as ID3DXSprite".
I have just been able to find "Dim MySprite as Sprite".
So, my question is: Is the "Sprite" class the same as the "ID3DXSprite" class that everybody is talking about; Or is there an important difference that gives extra functionality etc? If the unique ID3DXSprite class exists, how do you implement it?
Thanks!
VB has difficulties with COM, so anything starting with an I (such as IDirect3DDevice9) has to be wrapped in a class. That class usually has a name in the MDX code that is pretty close. In this case, the Sprite class is the corresponding one you are looking for.
Good luck.
Oh yes, and in the regular (not mdx) documentation, the difference between the ID3DXSprite and D3DXSPRITE is that ID3DXSprite is a COM interface (for some COM class) while D3DXSPRITE is a structure for use in describing how to render those sprites in the Begin method.
Good luck.
Oh yes, and in the regular (not mdx) documentation, the difference between the ID3DXSprite and D3DXSPRITE is that ID3DXSprite is a COM interface (for some COM class) while D3DXSPRITE is a structure for use in describing how to render those sprites in the Begin method.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement