diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-07-14 13:04:54 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-07-14 13:04:54 -0400 |
| commit | a17dcfdcba9f7da5a91c554eef88cea73d6598b0 (patch) | |
| tree | 8371131c504fd13e88d98dad7d8421f93ceab3b2 /screen.h | |
| parent | 2957d6c5b970d62e5d3333434b323117aaf97fa9 (diff) | |
Redid the Cmake Config and fell back to C17master
Diffstat (limited to 'screen.h')
| -rw-r--r-- | screen.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,10 +1,11 @@ #ifndef SCREEN_H #define SCREEN_H + #include <SDL2/SDL.h> #include "pong.h" -constexpr int SCREEN_WIDTH = 640; -constexpr int SCREEN_HEIGHT = 480; +#define SCREEN_WIDTH 640 +#define SCREEN_HEIGHT 480 extern SDL_Window *gWindow; extern SDL_Surface *gScreenSurface; @@ -12,8 +13,8 @@ extern SDL_Surface *ballSurface; extern SDL_Surface *leftPaddleSurface; extern SDL_Surface *rightPaddleSurface; -bool InitScreen ( void ); -void Close ( void ); -void Draw ( const struct moveable_t m, SDL_Surface * const surface ); +bool InitScreen(void); +void Close(void); +void Draw(const struct moveable_t m, SDL_Surface * const surface); #endif //SCREEN_H |
