36 lines
710 B
C++
36 lines
710 B
C++
#pragma once
|
|
|
|
#include "Camera.h"
|
|
|
|
|
|
class __declspec(align(16)) k_FlightSimApplication
|
|
{
|
|
public:
|
|
HEAP_ALIGNED_CLASS(16);
|
|
|
|
k_FlightSimApplication();
|
|
~k_FlightSimApplication();
|
|
|
|
// IApplication:
|
|
void OnInitialize();
|
|
void OnResize(int ai_Width, int ai_Height);
|
|
void OnDisplay(float af_Time);
|
|
void OnMouseButton(int ai_Button, bool ab_Pressed, int ai_PosX, int ai_PosY);
|
|
void OnMouseMove(int ai_PosX, int ai_PosY);
|
|
void OnKeyPressed(char ac_Char);
|
|
|
|
private:
|
|
GLhandleARB mh_Shader;
|
|
k_Camera mk_Camera;
|
|
k_Vector mk_FlightDirection;
|
|
k_Vector mk_YawPitchRoll;
|
|
k_Quaternion mk_Orientation;
|
|
|
|
bool mb_Dragging;
|
|
float mf_Speed;
|
|
float mf_ElapsedTime;
|
|
int mi_Width;
|
|
int mi_Height;
|
|
k_Vector mk_Mouse;
|
|
};
|