blob: e7b4fa4b708b5c4c444c36d0801488e82fb7f6ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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 );
#endif //SCREEN_H
|