summaryrefslogtreecommitdiff
path: root/glpong.h
blob: 43ee592bff2c72eb043907e8aba7418645ff3de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef GLPONG_H
#define GLPONG_H

#include "SDL.h"
#include "SDL_opengl.h"

#include "ball.h"
/*#include "paddle.h"*/

#define GLPONG_WIDTH	640
#define GLPONG_HEIGHT	480

#define GLPONG_NOACTION	0
#define GLPONG_EXIT	1
#define GLPONG_ADDBALL	2

#if SDL_BYTEORDER == SDL_BIG_ENDIAN
#define RMASK 0xff000000
#define GMASK 0x00ff0000
#define BMASK 0x0000ff00
#define AMASK 0x000000ff
#else
#define RMASK 0x000000ff
#define GMASK 0x0000ff00
#define BMASK 0x00ff0000
#define AMASK 0xff000000
#endif

typedef struct {
	SDL_Surface * Surface;
	Ball_t * balls;
/*	Paddle_t Left, Right;*/
	Uint16 w;
	Uint16 h;
} GLPong_t;

#endif