-
Notifications
You must be signed in to change notification settings - Fork 0
/
DebugPanel.h
35 lines (24 loc) · 967 Bytes
/
DebugPanel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef DEBUGPANEL_H
#define DEBUGPANEL_H
#include <memory>
#include <OISKeyboard.h>
#include <SdkTrays.h>
namespace Ogre { class RenderWindow; class InputContext; class Camera; }
namespace catapult {
/** Most of the code comes from the debug panel of the Ogre tutorials.
I touched only "just enough" to pull it in its own class. */
class DebugPanel : public OIS::KeyListener, public OgreBites::SdkTrayListener
{
public:
DebugPanel();
void initialize(Ogre::RenderWindow* window, OgreBites::InputContext& ic);
void setFilteringMode(const Ogre::String& newVal);
void readCameraPosition(const Ogre::Camera* camera);
/*KeyListener*/
virtual bool keyPressed(const OIS::KeyEvent &arg) final;
virtual bool keyReleased(const OIS::KeyEvent &arg ) final { return true; }
std::unique_ptr<OgreBites::SdkTrayManager> trayManager;
OgreBites::ParamsPanel* detailsPanel;
};
}
#endif