43 lines
760 B
C++
43 lines
760 B
C++
#pragma once
|
|
#ifdef __linux__
|
|
#include <SDL2/SDL.h>
|
|
#endif
|
|
#ifndef __ANDROID__
|
|
#include "render/OpenGlExtensions.h"
|
|
#endif
|
|
#include <Eigen/Dense>
|
|
#include "network/ClientState.h"
|
|
|
|
namespace ZL {
|
|
|
|
constexpr float DEFAULT_ZOOM = 36.f;
|
|
|
|
class Environment {
|
|
public:
|
|
static int windowHeaderHeight;
|
|
static int width;
|
|
static int height;
|
|
static float zoom;
|
|
|
|
static Eigen::Matrix3f inverseShipMatrix;
|
|
|
|
static SDL_Window* window;
|
|
|
|
static bool showMouse;
|
|
static bool exitGameLoop;
|
|
|
|
static bool tapDownHold;
|
|
static Eigen::Vector2f tapDownStartPos;
|
|
static Eigen::Vector2f tapDownCurrentPos;
|
|
|
|
static ClientState shipState;
|
|
|
|
static const float CONST_Z_NEAR;
|
|
static const float CONST_Z_FAR;
|
|
|
|
|
|
|
|
};
|
|
|
|
} // namespace ZL
|