From: Clyne Sullivan Date: Wed, 16 Sep 2015 15:34:25 +0000 (-0400) Subject: shitty bug fixes X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=d034b1e36b49336b9a927aee395930e446110de2;p=clyne%2Fgamedev.git shitty bug fixes --- d034b1e36b49336b9a927aee395930e446110de2 diff --cc src/main.cpp index eab1201,1843f4a..e48a66a --- a/src/main.cpp +++ b/src/main.cpp @@@ -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