I recently updated my game project to irrlicht 1.8 and now I am having a problem with CShadowVolumeSceneNode in my derived class.
The relevant code from my class: (same as CCubeSceneNode.cpp)
Code: Select all
//! Creates shadow volume scene node as child of this node
//! and returns a pointer to it.
IShadowVolumeSceneNode* kxCubeNode::addShadowVolumeSceneNode(
const IMesh* shadowMesh, s32 id, bool zfailmethod, f32 infinity)
{
if (!SceneManager->getVideoDriver()->queryFeature(video::EVDF_STENCIL_BUFFER))
return 0;
if (!shadowMesh)
shadowMesh = m_mesh; // if null is given, use the mesh of node
if (m_shadow)
m_shadow->drop();
m_shadow = new CShadowVolumeSceneNode
(shadowMesh, this, SceneManager, id, zfailmethod, infinity);
return m_shadow;
}
CShadowVolumeSceneNode is not included in <irrlicht.h> so I must #include <CShadowVolumeSceneNode.h> in my kxCubeNode.cpp right?
But this is causing problems, 'unresolved external symbol'
I've set my project properties include dir to both /include and /source/Irrlicht but the linker problems persist