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