Jump to content
  • Advertisement
Sign in to follow this  
Alaric

Sprite Problem

This topic is 4823 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

Hi. I have the book Beginning Game Programming by Jonathon Harbour (Thomson Course Technology; Premier Press) and there is some provided code that doesn't compile. I tried to compile one of the programs, and I received the following errors error C2065: "D3DXSPRITE_ALPHABLEND' : identifier undeclared error C2660: "ID3DXSPRITE::Draw' : function does not take 5 arguments the first error comes from the following line sprite_handler->Begin(D3DXSPRITE_ALPHABLEND); the second error comes from the following line sprite_handler->Draw( image, &srcRect, NULL, &position, D3DCOLOR_XRGB(255,255,255)); I'm trying to compile the code using Visual Studio.NET. I've set the following Project Settings Project Properties | Linker | Input | Additional Dependencies - d3d9.lib d3dx9.lib Project Properties | Command Line - "\Dxsdk\Lib\d3d9.lib" "\Dxsdk\Lib\d3dx9.lib" ...Anybody see anything missing? ...Anyone have any idea why these errors might be coming up?

Share this post


Link to post
Share on other sites
Advertisement
Hi,

I should have stated this. Which update are you using, 9.0A, 9.0B, August 2005 version(the latest version)? Because of the changes being made to d3dx, your book could be in 9.0B, yet you could be using the August 2005 version of the sdk, in which ID3DXSprite was rewritten.

Take a look at the documentation. From the looks of things, you are using 9.0B(the only one that used DXSDK as the root).

Sorry I couldn't be more helpful,
ProgrammingNerd

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!