Jump to content
  • Advertisement
Sign in to follow this  
Algotsson

Quick question about ID3DXSprites.

This topic is 4782 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!