Shoggoth + new OgreAL

frier

05-11-2007 10:46:07

I had issues similar to this with the previous version of OgreAL + shoggoth, which was fixed just by implementing one of the functions, though im getting them again with the new OgreAL but that old function "visitRenderables" doesn't exists anymore.. so its complaining about some other functions that arn't "concreted", anyone know which ones they are?

Im using Visual Studio 2005.

The following build errors
Error 1 error C2259: 'OgreAL::Listener' : cannot instantiate abstract class c:\dev\ogreal\src\ogreallistener.cpp 268
Error 2 error C2259: 'OgreAL::Sound' : cannot instantiate abstract class c:\dev\ogreal\src\ogrealsound.cpp 546
Error 3 error C2259: 'OgreAL::OggSound' : cannot instantiate abstract class c:\dev\ogreal\src\ogrealsound.cpp 577
Error 4 error C2259: 'OgreAL::OggSoundStream' : cannot instantiate abstract class c:\dev\ogreal\src\ogrealsound.cpp 585
Error 5 error C2259: 'OgreAL::WavSound' : cannot instantiate abstract class c:\dev\ogreal\src\ogrealsound.cpp 597
Error 6 error C2259: 'OgreAL::WavSound' : cannot instantiate abstract class c:\dev\ogreal\src\ogrealsound.cpp 604

frier

05-11-2007 11:01:20

all fixed'

i DID have to put this in the header files, im so confused sometimes XD

virtual void visitRenderables(Ogre::Renderable::Visitor* visitor, bool debugRenderables = false){}

CaseyB

05-11-2007 16:30:18

Ok, I added that line in with a compiler directive that tests for Shoggoth, so you shouldn't need to mess with it in the future.

frier

09-11-2007 00:05:54

Thanks Casey!

One last thing quickly, with that visitRenderables function.

i just updated, it says visitRenderables() is redefined in OgreALListener.h and OgreALSound.h (the name was something like that). Think its because it defines it in the class then redefines it again in the compiler directive part. There is also a 3rd declaration of the visitRenderables() in the OgreALListener.

CaseyB

09-11-2007 00:29:54

There are only two here, both tucked within the compiler directives. I think the reason you are seeing three is because it merged the changes you made before. The two places that it should be are in OgreALListener.h and OgreALSound.h because these are the two Movable Objects. WavSound and OggSound are just subclasses of Sound, so those two are already taken care of.