Skip to content

Commit

Permalink
Sample: do not duplicate FrameListener API
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 13, 2024
1 parent aece6cb commit 7f0566e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Samples/Common/include/Sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace OgreBites
| Base class responsible for everything specific to one sample.
| Designed to be subclassed for each sample.
=============================================================================*/
class Sample : public InputListener, public TrayListener, public Ogre::GeneralAllocatedObject
class Sample : public InputListener, public TrayListener, public Ogre::FrameListener
{
public:
/*=============================================================================
Expand Down Expand Up @@ -250,12 +250,6 @@ namespace OgreBites
| Restores the sample state. Optional. Used during reconfiguration.
-----------------------------------------------------------------------------*/
virtual void restoreState(Ogre::NameValuePairList& state) {}

// callback interface copied from various listeners to be used by SampleContext

virtual bool frameStarted(const Ogre::FrameEvent& evt) { return true; }
virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt) { return true; }
virtual bool frameEnded(const Ogre::FrameEvent& evt) { return true; }
protected:

/*-----------------------------------------------------------------------------
Expand Down

0 comments on commit 7f0566e

Please sign in to comment.