00001 #ifndef __VECTRACER_VISITOR_H__ 00002 #define __VECTRACER_VISITOR_H__ 00003 00004 #include "Common.h" 00005 00006 /* 00007 ----------------------------------------------------------------------------- 00008 Filename: Visitor.h 00009 Description: Inherited from Ogre::Renderable::Visitor. Interesting class this one. A visitor is used to iterate through renderable objects, calling a particular 00010 function each time. We'll be using this specific one to update Renderables with the Craft's position each frame. 00011 ----------------------------------------------------------------------------- 00012 */ 00013 class Visitor : public Ogre::Renderable::Visitor 00014 { 00015 public: 00016 00017 // Inherited. 00018 void visit(Ogre::Renderable *rend, Ogre::ushort lodIndex, bool isDebug, Ogre::Any *pAny=0); 00019 }; 00020 00021 #endif