Sign in to follow this  

Sprite Problem

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

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