-
Notifications
You must be signed in to change notification settings - Fork 1
Screen
Minigrim0 edited this page Jun 18, 2020
·
10 revisions
Handle all the screen/window related things, such as creating it, naming it, loading images, rendering text, setting fullscreen, ...
int get_width() constint get_height() constint get_time_elapsed() constbool is_running() constbool get_key(SDL_Keycode)TTF_Font* get_font() constSDL_Rect get_mouse_pos() constSDL_Window* get_window() constSDL_Renderer* get_renderer() constSDL_Color get_background_color() const
void set_width(int)void set_height(int)void set_background_color(SDL_Color)void set_background_color(Uint8, Uint8, Uint8)void toggle_fps_show()
int init()int build_window()SDL_Texture* convert_surface_to_texure(SDL_Surface*)int blit(SDL_Texture*, const SDL_Rect*, int, int)int blit(SDL_Texture*, const SDL_Rect*, int, int, int)int blit(SDL_Texture*, const SDL_Rect*, int, int, int, int)int blit(SDL_Texture*, const SDL_Rect*, SDL_Rect)void handle_events(SDL_Event*)void update_screen()void compute_fps()