41 lines
819 B
C++
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
|