summaryrefslogtreecommitdiff
path: root/glpong3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'glpong3d.c')
-rw-r--r--glpong3d.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/glpong3d.c b/glpong3d.c
index 0037b4f..f642168 100644
--- a/glpong3d.c
+++ b/glpong3d.c
@@ -10,6 +10,12 @@
#include "glpong3d.h"
+static void GLPong_Init(void);
+static void GLPong_HandleEvents(void);
+static void GLPong_Draw(void);
+static void GLPong_CleanUp(void);
+static void GLPong_Move(void);
+
GLuint box;
int main(int argc, char * argv[]) {
@@ -41,7 +47,7 @@ int main(int argc, char * argv[]) {
return 0;
}
-void GLPong_Init() {
+void GLPong_Init(void) {
SDL_Surface * temp = NULL;
int i;
int count;
@@ -166,7 +172,7 @@ void GLPong_Init() {
glPointSize(10.0f);
}
-void GLPong_HandleEvents() {
+void GLPong_HandleEvents(void) {
Uint8 * key;
int x = 0, y = 0;
if (SDL_PollEvent(&GLPong.Event) != 0) {
@@ -204,7 +210,7 @@ void GLPong_HandleEvents() {
/*printf("SDL x,y: %d,%d; OpenGL x,y: %f,%f\n", x, y, GLPong.Mouse.x, GLPong.Mouse.y);*/
}
-void GLPong_Move() {
+void GLPong_Move(void) {
GLPong.Ball.x += GLPong.Ball.xv;
if (GLPong.Ball.x > 1.0f) {
GLPong.Ball.x = 1.0f;
@@ -236,7 +242,7 @@ void GLPong_Move() {
GLPong_Collide(&GLPong.Ball, &GLPong.Front);
}
-void GLPong_Draw() {
+void GLPong_Draw(void) {
char buffer[10];
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -447,7 +453,7 @@ void GLPong_Collide(Ball_t * ball, const Paddle_t * paddle) {
}
}
-void GLPong_CleanUp() {
+void GLPong_CleanUp(void) {
}