Two question about DLL, CAnimatedMeshSceneNode.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
NewerCookie
Posts: 20
Joined: Sat Jan 10, 2009 12:53 pm

Two question about DLL, CAnimatedMeshSceneNode.

Post by NewerCookie »

Hi~
I have two question.

1.
I derived from "CAnimatedMeshSceneNode" and compiled it.
There are tons of link error about CAnimatedMeshSceneNode functions.
The problem is using DLL, I change to static lib, solved.
Why I Can't use DLL?


2.
searching result :
http://irrlicht.sourceforge.net/phpBB2/ ... hscenenode
http://irrlicht.sourceforge.net/phpBB2/ ... hscenenode
http://irrlicht.sourceforge.net/phpBB2/ ... hscenenode
Every say Don't derive from "CAnimatedMeshSceneNode".
I can't see exact reason.
Why don't Derive from "C...SceneNode" class?

Thanks in advance.
I hope you understand my poor english.
If i used wrong sentence, notify me.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

1.
The DLL only exports the createDevice function. The linker doesn't know about any other thing unless you use the static lib which exports everything.

2.
Because the C... are implementations of an interface. Just derive your class from the I... interfaces and implement them.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
NewerCookie
Posts: 20
Joined: Sat Jan 10, 2009 12:53 pm

Post by NewerCookie »

Sylence, Thanks a lot!
Because the C... are implementations of an interface. Just derive your class from the I... interfaces and implement them.
for example, CAnimatedMeshSceneNode is so huge.
I must copy and paste all of CAnimatedMeshSceneNode to new scenenode?
They are almost identical. memory is wasted by same functions,variables.
It's right way?
I hope you understand my poor english.
If i used wrong sentence, notify me.
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, that's the proper way to do things, or you have to put the node into the library, which means altering Irrlicht to some extent.
NewerCookie
Posts: 20
Joined: Sat Jan 10, 2009 12:53 pm

Post by NewerCookie »

Thanks, hybrid
you have to put the node into the library, which means altering Irrlicht to some extent.
No, I don't want to edit engine code, directly.
It's make difficult to use next version, right?
I go to copy and paste.. :(
I hope you understand my poor english.
If i used wrong sentence, notify me.
Post Reply