leocad/win/Terrwnd.h

36 lines
755 B
C
Raw Normal View History

2012-06-23 02:14:09 +02:00
#ifndef _TERRWND_H_
#define _TERRWND_H_
2011-09-07 23:06:51 +02:00
2012-06-23 02:14:09 +02:00
#include "glwindow.h"
2011-09-07 23:06:51 +02:00
class Terrain;
class Camera;
2012-06-23 02:14:09 +02:00
class lcTerrainView : public GLWindow
2011-09-07 23:06:51 +02:00
{
public:
2012-06-23 02:14:09 +02:00
lcTerrainView(GLWindow *share, Terrain* pTerrain);
virtual ~lcTerrainView();
2011-09-07 23:06:51 +02:00
2012-06-23 02:14:09 +02:00
virtual void OnDraw();
virtual void OnInitialUpdate();
virtual void OnLeftButtonDown(int x, int y, bool Control, bool Shift);
virtual void OnLeftButtonUp(int x, int y, bool Control, bool Shift);
virtual void OnMouseMove(int x, int y, bool Control, bool Shift);
2011-09-07 23:06:51 +02:00
void ResetCamera();
2012-10-12 20:21:45 +02:00
void LoadTexture();
2012-06-23 02:14:09 +02:00
void SetAction(int Action);
2011-09-07 23:06:51 +02:00
2012-06-23 02:14:09 +02:00
Terrain* mTerrain;
Camera* mCamera;
int mAction;
int mMouseX;
int mMouseY;
bool mMouseDown;
2011-09-07 23:06:51 +02:00
enum TERRAIN_ACTIONS { TERRAIN_ZOOM, TERRAIN_PAN, TERRAIN_ROTATE };
};
2012-06-23 02:14:09 +02:00
#endif // _TERRWND_H_