summaryrefslogtreecommitdiff
path: root/ball.h
blob: 6707ebbf9f3631bd2c5d059c1f8f5c0c199ac8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef BALL_H
#define BALL_H

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

GLuint ball_texture;

typedef struct {
	GLfloat w, h, x, y;
	GLfloat r, g, b, a;
	GLfloat xv, yv;
} Ball_t;

void GLPong_BallAdd();
void GLPong_BallDelete();
int GLPong_BallCollide(const Ball_t * a, const Ball_t * b);

#endif