44 lines
775 B
C++
44 lines
775 B
C++
#pragma once
|
|
#include "ZLMath.h"
|
|
#ifdef __linux__
|
|
#include <SDL2/SDL.h>
|
|
#endif
|
|
#include "OpenGlExtensions.h"
|
|
|
|
namespace ZL {
|
|
|
|
class Environment {
|
|
public:
|
|
static int windowHeaderHeight;
|
|
static int width;
|
|
static int height;
|
|
static float zoom;
|
|
|
|
static bool leftPressed;
|
|
static bool rightPressed;
|
|
static bool upPressed;
|
|
static bool downPressed;
|
|
|
|
static bool settings_inverseVertical;
|
|
|
|
static Matrix3f shipMatrix;
|
|
static Matrix3f inverseShipMatrix;
|
|
|
|
static SDL_Window* window;
|
|
|
|
static bool showMouse;
|
|
static bool exitGameLoop;
|
|
|
|
|
|
static bool tapDownHold;
|
|
static Vector2f tapDownStartPos;
|
|
static Vector2f tapDownCurrentPos;
|
|
|
|
static Vector3f shipPosition;
|
|
static float shipVelocity;
|
|
|
|
|
|
};
|
|
|
|
} // namespace ZL
|