diff options
author | Matt Turner <mattst88@gmail.com> | 2008-03-01 18:04:19 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-03-01 18:04:19 +0000 |
commit | 8490c68f5d3fbb4d3e0030467dd785beca10c3f1 (patch) | |
tree | ca375e1605a94d44bf23d3b8e80084ec65371da2 /ball.c | |
parent | 83723eb5558383537968bee22b2342372ad9a40d (diff) |
Begin adding text rendering support using QuesoGLC. Minor clean ups. Begin working on FPS counter.
git-svn-id: svn://mattst88.com/svn/glpong/trunk@13 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'ball.c')
-rw-r--r-- | ball.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -23,8 +23,8 @@ length(Ball_t * balls) { void GLPong_BallInit() { - ball_width = GLPONG_WIDTH / 32.0f; /* FIXME: magic numbers */ - ball_height = GLPONG_HEIGHT / 24.0f; + ball_width = 20.0f; + ball_height = 20.0f; ball = glGenLists(1); glNewList(ball, GL_COMPILE); @@ -55,8 +55,8 @@ GLPong_BallAdd(Ball_t ** balls) { newball->x = 100.0f; newball->y = 100.0f; - newball->xv = GLPONG_WIDTH / (GLfloat)320; /* FIXME: magic numbers */ - newball->yv = GLPONG_HEIGHT / (GLfloat)240; + newball->xv = 2.0f; + newball->yv = 2.0f; newball->r = rand() % 255; newball->g = rand() % 255; newball->b = rand() % 255; |