space-game001/src/Environment.h
Vladislav Khorev 8f3528f9a1 merge
2026-01-18 13:29:48 +03:00

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