blob: 61962e78d96bd3861c5bada74307480dddf7e6c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef PADDLE_H
#define PADDLE_H
#include "SDL.h"
#include "SDL_opengl.h"
typedef struct {
GLfloat x, y, z;
GLfloat w, h;
GLfloat r, g, b;
} Paddle_t;
void GLPong_PaddleDraw(const Paddle_t * paddle);
void GLPong_PaddleInit(Paddle_t * paddle, GLfloat z, GLuint texture);
void GLPong_PaddleMove(Paddle_t * paddle, GLfloat x, GLfloat y);
#endif /* PADDLE_H */
|