Sign in to follow this  
Trainwreck

D3DUtil_InitMaterial

Recommended Posts

When trying to load an example from a book, I am left with the following error even though I have d3dutil.cpp and d3dutil.h (as well as the rest of the example framework from summber 2003 SDK) included in my project: c:\Documents and Settings\Train\Desktop\School\CS360\Lab03\Main.cpp(212): error C2065: 'D3DUtil_InitMaterial' : undeclared identifier I don't even see that function in either of those files... [Edited by - Trainwreck on February 9, 2005 2:29:19 AM]

Share this post


Link to post
Share on other sites
It's a macro that's defined in one of the common files of the sample framework - IIRC, d3dutil.h. Open d3dutil.h and look for it, if you don't find it, write a replacement (it's simple, it just wrote the diffuse and ambient components of a material and zeroes everything else, IIRC)

Share this post


Link to post
Share on other sites

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