54 class Popup_Menu_State_Factory;
55 class Popup_Pause_State_Factory;
64 ZENI_REST_DLL
extern Gamestate_Zero_Initializer *
g_gzi;
65 ZENI_REST_DLL
extern int g_argc;
66 ZENI_REST_DLL
extern const char *
const *
g_argv;
68 ZENI_REST_EXT
template class ZENI_REST_DLL Singleton<Game>;
74 static Game * create();
86 #if !defined(ANDROID) && !defined(NDEBUG)
89 void write_to_console(
const String &text);
91 inline size_t size()
const;
100 void perform_logic();
104 inline size_t get_fps()
const;
105 bool get_key_state(
const int &key)
const;
106 bool get_mouse_button_state(
const int &button)
const;
112 void push_Popup_Menu_State();
113 void push_Popup_Pause_State();
122 noise_zone(8192, 4096),
123 pixels_per_second(1000.0
f, 1000.0
f),
146 void calculate_fps();
149 #pragma warning( push )
150 #pragma warning( disable : 4251 )
152 std::stack<Gamestate> m_states;
158 #pragma warning( pop )
167 #if !defined(ANDROID) && !defined(NDEBUG)
168 void activate_console();
169 void deactivate_console();
172 bool m_console_active;
176 bool is_console_active()
const;
Point2f pixels_per_second
GLenum GLsizei const GLuint GLboolean enabled
static void render(const Vertex_Buffer_Macrorenderer ¯orenderer, std::vector< Vertex_Buffer::Vertex_Buffer_Range * > &descriptors)
SDL_GameControllerButton scroll_up
Game & get_Game()
Get access to the singleton.
virtual ~Gamestate_Zero_Initializer()
SDL_GameControllerButton left_click
A smartpointer for a Gamestate_Base.
Gamestate_Zero_Initializer * g_gzi
const char *const * g_argv
The base class for all gamestates.
int16_t Sint16
A signed 16-bit integer type.
Provide a text console to process commands.
A 2D Point represented with floats.
SDL_GameControllerButton scroll_down
SDL_GameControllerButton escape
A 2D Point represented with integers.