44 lines
1009 B
C++
44 lines
1009 B
C++
#include "Environment.h"
|
|
|
|
#include "Utils.h"
|
|
#include <GL/gl.h>
|
|
|
|
namespace ZL {
|
|
|
|
int Environment::windowHeaderHeight = 0;
|
|
int Environment::width = 0;
|
|
int Environment::height = 0;
|
|
float Environment::zoom = 18.f;
|
|
|
|
bool Environment::leftPressed = false;
|
|
bool Environment::rightPressed = false;
|
|
bool Environment::upPressed = false;
|
|
bool Environment::downPressed = false;
|
|
|
|
bool Environment::settings_inverseVertical = false;
|
|
|
|
SDL_Window* Environment::window = nullptr;
|
|
|
|
bool Environment::showMouse = false;
|
|
|
|
bool Environment::exitGameLoop = false;
|
|
|
|
Matrix3f Environment::shipMatrix = Matrix3f::Identity();
|
|
Matrix3f Environment::inverseShipMatrix = Matrix3f::Identity();
|
|
|
|
|
|
bool Environment::tapDownHold = false;
|
|
Vector2f Environment::tapDownStartPos = { 0, 0 };
|
|
Vector2f Environment::tapDownCurrentPos = { 0, 0 };
|
|
|
|
Vector3f Environment::shipPosition = {0,0,0};
|
|
|
|
float Environment::shipVelocity = 0.f;
|
|
|
|
|
|
const float Environment::CONST_Z_NEAR = 5.f;
|
|
const float Environment::CONST_Z_FAR = 5000.f;
|
|
|
|
|
|
} // namespace ZL
|