summaryrefslogtreecommitdiff
path: root/screen.h
blob: e839efd74cc37648bf5ceab64f08a779904d2c06 (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"

#define SCREEN_WIDTH	640
#define 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