-
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&)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::Screen\(const Screen&);) ~Screen()
- [
Screen& operator=(const Screen&)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::Screen& operator=(const Screen&);)
- [
int get_height() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_height\(\) const;) - [
int get_width() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_width\(\) const;) - [
SDL_Window* get_window() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_window\(\) const;) - [
SDL_Color get_background_color() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_background_color\(\) const;) - [
TTF_Font* get_font() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_font\(\) const;) - [
bool is_running() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::is_running\(\) const;) bool get_key(SDL_Keycode)- [
SDL_Rect get_mouse_pos() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_mouse_pos\(\) const;) - [
SDL_Renderer* get_renderer() const](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::get_renderer\(\) const;)
int set_height(int)int set_width(int)void set_background_color(SDL_Color)- [
void set_background_color(Uint8, Uint8, Uint8)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::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)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::blit\(SDL_Texture*, const SDL_Rect*, int, int);) - [
int blit(SDL_Texture*, const SDL_Rect*, int, int, int)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::blit\(SDL_Texture*, const SDL_Rect*, int, int, int);) - [
int blit(SDL_Texture*, const SDL_Rect*, int, int, int, int)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::blit\(SDL_Texture*, const SDL_Rect*, int, int, int, int);) - [
int blit(SDL_Texture*, const SDL_Rect*, SDL_Rect)](https://github.com/fgrimau/fuzzy-waddle/wiki/Screen::blit\(SDL_Texture*, const SDL_Rect*, SDL_Rect);) void handle_events(SDL_Event*)void update_screen()void compute_fps()