File: PerlOGREFrameListener.h

package info (click to toggle)
libogre-perl 0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,812 kB
  • ctags: 452
  • sloc: perl: 6,019; cpp: 501; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _PERLOGRE_FRAMELISTENER_H_
#define _PERLOGRE_FRAMELISTENER_H_

#include "PerlOGRECallback.h"

using namespace std;

// this class implements Ogre::FrameListener,
// so it can be passed to Root->addFrameListener
// but still allowing implementing the callbacks from Perl

class PerlOGREFrameListener : public PerlOGRECallback, public Ogre::FrameListener
{
 public:
    PerlOGREFrameListener(SV *pobj);

    // FrameListener interface
    bool frameStarted(const Ogre::FrameEvent &evt);
    bool frameEnded(const Ogre::FrameEvent &evt);
};


#endif  /* define _PERLOGRE_FRAMELISTENER_H_ */