-
Notifications
You must be signed in to change notification settings - Fork 1
Screen
fgrimau edited this page Dec 28, 2019
·
10 revisions
Handle all the screen/window related things, such as creating it, naming it, loading images, rendering text, setting fullscreen, ...
Screen()Screen(const Screen&)~Screen()
Screen& operator=(const Screen&)
int get_height() constint get_width() constSDL_Window* get_window() constSDL_Color get_background_color() constTTF_Font* get_font() constbool is_running() constbool get_key(SDL_Keycode)SDL_Rect get_mouse_pos() constSDL_Renderer* get_renderer() const
int set_height(int)int set_width(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()