-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathogre4d.h
More file actions
64 lines (49 loc) · 1.6 KB
/
Copy pathogre4d.h
File metadata and controls
64 lines (49 loc) · 1.6 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __TutorialApplication_h_
#define __TutorialApplication_h_
#include "BaseApplication.h"
#include "HyperCube.h"
#include "FixedXYHyperPlane.h"
#include "FourDimensionalScene.h"
class Ogre4dApplication : public BaseApplication
{
public:
Ogre4dApplication(void);
virtual ~Ogre4dApplication(void);
protected:
virtual void createScene(void);
// Ogre::FrameListener
virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
// OIS::KeyListener
virtual bool keyPressed( const OIS::KeyEvent &arg );
virtual bool keyReleased( const OIS::KeyEvent &arg );
// OIS::MouseListener
virtual bool mouseMoved( const OIS::MouseEvent &arg );
virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
virtual Ogre::StringVector getDetailsPanelFields();
virtual void updateDetailsPanelContent();
private:
void renderSlice();
void clearSlice();
void MakeFloor();
void MakeWall();
bool mRotatePlane;
float mAngle;
int mShiftPlane;
int mGoingForward;
int mGoingRight;
int mGoingUp;
bool mFastMove;
float mShiftPlaneSpeed;
float mTopSpeed;
Ogre::Vector3 mVelocity;
Ogre::SceneNode *mCameraYawNode;
Vector4f mCameraPosition;
FixedXYHyperPlane mCameraPlane;
FourDimensionalScene m4dScene;
std::vector<Ogre::SceneNode *> mNodes;
std::vector<Ogre::ManualObject *> mManualObjects;
std::vector<Ogre::String> mMaterials;
OgreBites::ParamsPanel* m4dDetailsPanel;
};
#endif // #ifndef __TutorialApplication_h_