mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
35 lines
755 B
C++
35 lines
755 B
C++
#ifndef _TERRWND_H_
|
|
#define _TERRWND_H_
|
|
|
|
#include "glwindow.h"
|
|
|
|
class Terrain;
|
|
class Camera;
|
|
|
|
class lcTerrainView : public GLWindow
|
|
{
|
|
public:
|
|
lcTerrainView(GLWindow *share, Terrain* pTerrain);
|
|
virtual ~lcTerrainView();
|
|
|
|
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);
|
|
|
|
void ResetCamera();
|
|
void LoadTexture();
|
|
void SetAction(int Action);
|
|
|
|
Terrain* mTerrain;
|
|
Camera* mCamera;
|
|
int mAction;
|
|
int mMouseX;
|
|
int mMouseY;
|
|
bool mMouseDown;
|
|
|
|
enum TERRAIN_ACTIONS { TERRAIN_ZOOM, TERRAIN_PAN, TERRAIN_ROTATE };
|
|
};
|
|
|
|
#endif // _TERRWND_H_
|