Sign in to follow this  

Quick question about ID3DXSprites.

This topic is 4417 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 4417 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this