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

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

void GLPong_BallDraw(const Ball_t * ball);
void GLPong_BallInit(Ball_t * ball, GLuint texture);
void GLPong_BallMove(Ball_t * ball);

#endif