group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
IScreen.hpp
Go to the documentation of this file.
1
3
4#pragma once
5#include <SDL3/SDL.h>
6
12{
13public:
14 virtual ~IScreen() = default;
15
19 virtual SDL_AppResult event(SDL_Event* event) = 0;
20
23 virtual SDL_AppResult iterate() = 0;
24
26 virtual void quit() = 0;
27
29 virtual void shutdownAfterRenderer() {}
30};
Interface implemented by each full-screen mode (Lobby, Game).
Definition IScreen.hpp:12
virtual SDL_AppResult iterate()=0
Update the screen state and render the next frame.
virtual SDL_AppResult event(SDL_Event *event)=0
Handle an incoming SDL event.
virtual void quit()=0
Perform any necessary cleanup before the screen is destroyed.
virtual void shutdownAfterRenderer()
Perform cleanup that must happen after the App-owned renderer shuts down.
Definition IScreen.hpp:29
virtual ~IScreen()=default