Handle screen-related events from screen.c

This commit is contained in:
Romain Vimont
2021-02-15 18:44:53 +01:00
parent ea2369f568
commit 50b4a730e3
3 changed files with 37 additions and 24 deletions

View File

@@ -91,10 +91,6 @@ screen_show_window(struct screen *screen);
void
screen_destroy(struct screen *screen);
// resize if necessary and write the rendered frame into the texture
bool
screen_update_frame(struct screen *screen);
// render the texture to the renderer
//
// Set the update_content_rect flag if the window or content size may have
@@ -118,9 +114,9 @@ screen_resize_to_pixel_perfect(struct screen *screen);
void
screen_set_rotation(struct screen *screen, unsigned rotation);
// react to window events
void
screen_handle_window_event(struct screen *screen, const SDL_WindowEvent *event);
// react to SDL events
bool
screen_handle_event(struct screen *screen, SDL_Event *event);
// convert point from window coordinates to frame coordinates
// x and y are expressed in pixels