Jump to content
  • Advertisement
Sign in to follow this  
Arkanoid

Animation in D3D

This topic is 2271 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 started to learn animation from this sample:
http://www.toymaker.info/Games/html/load_x_hierarchy.html

There is no problem to understand how animation works, but i have very BIG problem with using that code in my projects...

There is a structure CGraphics that contains everything, i just try to use animation without that class. So about the problem:
project contains all files in two parts .h and .cpp in the sample - everything works good, but if i add this files in my project:
#include "XfileEntity.h"
#include "Utility.h"


i have errors like this :
: error LNK2019: public: static void __cdecl CUtility::DebugString

why? How shoud i add that files to project correctly?

Share this post


Link to post
Share on other sites
Advertisement
Their project compiles and runs out-of-the box.
If you are trying to say that you are making your own new project and copying their files over, you need to add the .CPP files to your project, not just the .H files.


L. Spiro

Share this post


Link to post
Share on other sites

#include "Utility.h"
#include "Utility.cpp"

i have this error:
error LNK2005: "public: static char * __cdecl CUtility::DuplicateCharString for all utility functions.

Share this post


Link to post
Share on other sites
That is because you #include’d Utility.cpp instead of adding it to your project, via drag-and-drop for example.


L. Spiro

Share this post


Link to post
Share on other sites
I added it in the list where is main.cpp.. And if i open classes window i can see that functions in the list. And i can see there CUtility class.

Share this post


Link to post
Share on other sites
i understand where was the problem...when i add it it to the project i must delete
#include "Utility.cpp"
thx for help))

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!