zenilib
0.5.3.0
|
#include <modern.h>
Inherits Zeni::Gamestate_Base.
Public Member Functions | |
Modern_State () | |
~Modern_State () | |
![]() | |
Gamestate_Base () | |
virtual | ~Gamestate_Base () |
const bool & | is_pausable () const |
virtual void | on_cover () |
Called when a Gamestate is pushed on top of this Gamestate in Game. More... | |
virtual void | on_event (const SDL_Event &event) |
First check for events. Called by Game as part of the main gameloop. More... | |
virtual void | on_pop () |
Called when the Gamestate is popped off the stack in Game. More... | |
virtual void | on_push () |
Called when the Gamestate is pushed onto the stack in Game. More... | |
virtual void | on_uncover () |
Called when a Gamestate is popped off Game, making this Gamestate on top. More... | |
virtual void | perform_logic () |
Then perform logic. Called by Game as part of the main gameloop. More... | |
virtual void | prerender () |
No actual rendering, but any logic strictly necessary for rendering. More... | |
void | set_pausable (const bool &pausable_) |
Additional Inherited Members | |
![]() | |
static char | to_char (const SDL_Keysym &ks) |
Returns a character key corresponding to the current combination of keys pressed or the null character (0). More... | |
static SDL_Keycode | to_sym (const String &text_version) |
Convert a text representation to an actual sym. More... | |
static String | to_text (const SDL_Keycode &sym) |
Convert a sym to a text representation. More... | |
![]() | |
virtual void | on_active (const SDL_ActiveEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_controller_axis (const SDL_ControllerAxisEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_controller_button (const SDL_ControllerButtonEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_controller_device (const SDL_ControllerDeviceEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_key (const SDL_KeyboardEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_mouse_button (const SDL_MouseButtonEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_mouse_motion (const SDL_MouseMotionEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_quit (const SDL_QuitEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_system_wm_event (const SDL_SysWMEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_user_event (const SDL_UserEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_video_expose (const SDL_ExposeEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
virtual void | on_video_resize (const SDL_ResizeEvent &event) |
Override this input callback in your Gamestates. See SDL documentation for details. More... | |
|
inline |
Definition at line 35 of file modern.h.
References colors, D3DDECL_END, D3DDECLMETHOD_DEFAULT, D3DDECLTYPE_FLOAT2, D3DDECLTYPE_UBYTE4N, D3DDECLUSAGE_COLOR, D3DDECLUSAGE_POSITION, D3DFMT_INDEX16, D3DPOOL_MANAGED, D3DUSAGE_WRITEONLY, Zeni::Video_DX9::get_d3d_device(), Zeni::get_Video(), GL_ARRAY_BUFFER, GL_ARRAY_BUFFER_ARB, GL_ELEMENT_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER_ARB, GL_STATIC_DRAW, GL_STATIC_DRAW_ARB, glBindBuffer(), glBindBufferARB, glBufferData(), glBufferDataARB, glGenBuffers(), glGenBuffersARB, glGetAttribLocation(), glGetAttribLocationARB, memcpy, memset, and vertices.
|
inline |
Definition at line 122 of file modern.h.
References Zeni::get_Video(), and glDeleteBuffers().