Sign in to follow this  

D3DUtil_InitMaterial

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

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

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