shadow-over-bishkek001/src/Environment.cpp
Vladislav Khorev 8f3528f9a1 merge
2026-01-18 13:29:48 +03:00

41 lines
819 B
C++

#include "Environment.h"
#include "utils/Utils.h"
#ifdef __ANDROID__
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#else
#include <GL/gl.h>
#endif
namespace ZL {
int Environment::windowHeaderHeight = 0;
int Environment::width = 0;
int Environment::height = 0;
float Environment::zoom = DEFAULT_ZOOM;
SDL_Window* Environment::window = nullptr;
bool Environment::showMouse = false;
bool Environment::exitGameLoop = false;
Eigen::Matrix3f Environment::inverseShipMatrix = Eigen::Matrix3f::Identity();
bool Environment::tapDownHold = false;
Eigen::Vector2f Environment::tapDownStartPos = { 0, 0 };
Eigen::Vector2f Environment::tapDownCurrentPos = { 0, 0 };
ClientState Environment::shipState;
const float Environment::CONST_Z_NEAR = 5.f;
const float Environment::CONST_Z_FAR = 5000.f;
} // namespace ZL