**************************/
//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