16 #
if defined(GTE_DEV_OPENGL)
17 mCamera(std::make_shared<Camera>(
true,
false)),
19 mCamera(std::make_shared<Camera>(
true,
true)),
38 float translationSpeed,
float rotationSpeed, std::array<float, 3>
const& pos,
39 std::array<float, 3>
const& dir, std::array<float, 3>
const& up)
41 mCamera->SetFrustum(upFovDegrees, aspectRatio, dmin, dmax);
46 mCamera->SetFrame(camPosition, camDVector, camUVector, camRVector);
57 float upFovDegrees, aspectRatio, dMin, dMax;
58 mCamera->GetFrustum(upFovDegrees, aspectRatio, dMin, dMax);
static int const KEY_LEFT
void SetFinalPoint(int x, int y)
void RegisterMoveBackward(int trigger)
void RegisterMoveUp(int trigger)
void RegisterTurnRight(int trigger)
void RegisterMoveLeft(int trigger)
bool PopMotion(int trigger)
virtual bool OnResize(int xSize, int ySize) override
static int const KEY_PAGE_UP
void RegisterLookDown(int trigger)
virtual bool OnKeyDown(int key, int x, int y) override
static int const KEY_HOME
bool PushMotion(int trigger)
void RegisterLookUp(int trigger)
float GetTranslationSpeed() const
float GetAspectRatio() const
void RegisterTurnLeft(int trigger)
void SetActive(bool active)
void InitializeCamera(float upFovDegrees, float aspectRatio, float dmin, float dmax, float translationSpeed, float rotationSpeed, std::array< float, 3 > const &pos, std::array< float, 3 > const &dir, std::array< float, 3 > const &up)
static int const MOUSE_DOWN
static int const KEY_DELETE
void SetInitialPoint(int x, int y)
virtual bool OnCharPress(unsigned char key, int x, int y) override
void RegisterMoveForward(int trigger)
static int const KEY_INSERT
static int const KEY_PAGE_DOWN
virtual bool OnMouseClick(MouseButton button, MouseState state, int x, int y, unsigned int modifiers) override
DualQuaternion< Real > Cross(DualQuaternion< Real > const &d0, DualQuaternion< Real > const &d1)
static int const MOUSE_LEFT
static int const KEY_RIGHT
void RegisterMoveRight(int trigger)
std::shared_ptr< GraphicsEngine > mEngine
void RegisterMoveDown(int trigger)
virtual bool OnResize(int xSize, int ySize)
void SetTranslationSpeed(float translationSpeed)
float GetRotationSpeed() const
std::shared_ptr< Camera > mCamera
virtual bool OnMouseMotion(MouseButton button, int x, int y, unsigned int modifiers) override
static int const KEY_DOWN
void SetRotationSpeed(float rotationSpeed)
Window3(Parameters ¶meters)
virtual bool OnCharPress(unsigned char key, int x, int y)
virtual bool OnKeyUp(int key, int x, int y) override