30 Window(
int width,
int height, SDL_Color color);
50 SDL_Window *window =
nullptr;
51 SDL_Surface *screenSurf =
nullptr;
52 SDL_Renderer *renderer =
nullptr;
The main window object.
Definition: Window.h:21
SDL_Surface * getSurface() const
Get the native SDL surface.
Definition: Window.cpp:33
Window(int width, int height, SDL_Color color)
Create a window object.
Definition: Window.cpp:3
SDL_Renderer * getRenderer() const
Get the native SDL renderer.
Definition: Window.cpp:38
SDL_Window * getWindowObject() const
Get the native SDL window object.
Definition: Window.cpp:28
~Window()
Definition: Window.cpp:22
void update()
Definition: Window.cpp:43