summaryrefslogtreecommitdiff
path: root/screen.h
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-02-19 14:00:11 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-02-19 14:00:11 -0500
commit9d4fbd735e60c8bfd8360a9cdcfc1c757a6cced1 (patch)
tree3b7aa9cc4741aa50ddf1ac4f77f07cca3d12ffdf /screen.h
Initial Commit
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/screen.h b/screen.h
new file mode 100644
index 0000000..efadac9
--- /dev/null
+++ b/screen.h
@@ -0,0 +1,20 @@
+#ifndef SCREEN_H
+#define SCREEN_H
+#include <SDL2/SDL.h>
+#include "pong.h"
+
+constexpr int SCREEN_WIDTH = 640;
+constexpr int SCREEN_HEIGHT = 480;
+
+extern SDL_Window *gWindow;
+extern SDL_Surface *gScreenSurface;
+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 );
+void ClearScreen( void );
+
+#endif //SCREEN_H