Questions regarding game mechanics and graphic programming should go here.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard


Postby smush » Sun Mar 25, 2007 1:31 am

In the book "beginning game programming" by Jonathon S Harbor, the source code for a DirectX game uses a method called Begin() which is defined in LPD3DXSPRITE. it requires that D3DXSPRITE_ALPHABLEND is passed into it as an argument.


The problem is MVC version 6 doesnt recognize this variable:

error C2065: 'D3DXSPRITE_ALPHABLEND' : undeclared identifier

And yes, I have included d3d9.h and all the necessary libraries in the link tab.

Does anyone know why D3DXSPRITE_ALPHABLEND is not recognised ? All feedback appreciated.

My SDK is directX 9.0b, this was the one used in the book.
Every C++ programmer should learn java,
and every java programmer should learn C++
Posts: 18
Joined: Mon Nov 21, 2005 7:38 am

Return to Games and Graphics

Who is online

Users browsing this forum: No registered users and 1 guest