summaryrefslogtreecommitdiff
path: root/glpong3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'glpong3d.c')
-rw-r--r--glpong3d.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/glpong3d.c b/glpong3d.c
index 43798ce..fe040a3 100644
--- a/glpong3d.c
+++ b/glpong3d.c
@@ -41,9 +41,9 @@ void GLPong_Init() {
GLPong.Ball.x = -(GLPong.Ball.w / 2);
GLPong.Ball.y = -(GLPong.Ball.h / 2);
GLPong.Ball.z = -3.0f;
- GLPong.Ball.xv = 0.02f;
- GLPong.Ball.yv = 0.01f;
- GLPong.Ball.zv = -0.01f;
+ GLPong.Ball.xv = 0.0f;
+ GLPong.Ball.yv = 0.0f;
+ GLPong.Ball.zv = -0.03f;
GLPong.Front.w = 0.66f;
GLPong.Front.h = 0.5f;
@@ -226,7 +226,7 @@ void GLPong_Draw() {
glEnable(GL_TEXTURE_2D);
glTranslatef(GLPong.Mouse.x, -GLPong.Mouse.y, GLPong.Front.z);
glBegin(GL_QUADS);
- glTexCoord2f(0.168f, 1.0f); glVertex2f(GLPong.Front.w / 2, GLPong.Front.h / 2); /* Upper Right */
+ glTexCoord2f(0.168f, 1.0f); glVertex2f(GLPong.Front.w / 2, GLPong.Front.h / 2); /* Upper Right */
glTexCoord2f(0.832f, 1.0f); glVertex2f(-GLPong.Front.w / 2, GLPong.Front.h / 2); /* Upper Left */
glTexCoord2f(0.832f, 0.0f); glVertex2f(-GLPong.Front.w / 2, -GLPong.Front.h / 2); /* Lower Left */
glTexCoord2f(0.168f, 0.0f); glVertex2f(GLPong.Front.w / 2, -GLPong.Front.h / 2); /* Lower Right */
@@ -317,6 +317,7 @@ GLuint SDL_GL_SurfaceToTexture(SDL_Surface * surface) {
return texture;
}
+
/*
GLuint SDL_GL_NPOTSurfaceToTexture(SDL_Surface * surface, GLfloat * wratio, GLfloat * hratio) {
SDL_Surface * pow2 = NULL;