]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
shitty bug fixes
authorClyne Sullivan <tullivan99@gmail.com>
Wed, 16 Sep 2015 15:34:25 +0000 (11:34 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Wed, 16 Sep 2015 15:34:25 +0000 (11:34 -0400)
1  2 
src/main.cpp

diff --cc src/main.cpp
index eab1201b105a92fa0898c09dfbc09b21440e0e57,1843f4a87fddf9ecee791d86fba3ec6bc1e20ccd..e48a66a7271e0935ded24fe9fc95003052affb0d
@@@ -185,11 -189,18 +189,19 @@@ void render()
        **************************/
  
        //DRAW MOUSE HERE!!!!!W
 -      mx=(ui.mousex/(float)SCREEN_WIDTH)*2.0f-1.0f;
 -      my=((SCREEN_HEIGHT-ui.mousey)/(float)SCREEN_HEIGHT)*2.0f-1.0f;
 +      glColor3ub(255,0,0);
 +      mx=(ui::mousex/(float)SCREEN_WIDTH)*2.0f-1.0f;
 +      my=((SCREEN_HEIGHT-ui::mousey)/(float)SCREEN_HEIGHT)*2.0f-1.0f;
        if(player.loc.x-1>-1)mx+=player.loc.x;
-       glRectf(mx,my,mx+HLINE*4,my+HLINE*4);
+       glBegin(GL_TRIANGLES);
+       glColor3ub(255,255,255);
+       glVertex2f(mx,my);
+       glVertex2f(mx + (HLINE*3.5),my - (HLINE*1));
+       glVertex2f(mx + (HLINE*1),my - (HLINE*6));
+       glEnd();
  
        glPopMatrix();                                                                  //take the matrix(s) off the stack to pass them to the renderer
        SDL_GL_SwapWindow(window);                                              //give the stack to SDL to render it