Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drawX = (currentX-250)*0.02;
- drawY = -(currentY-250)*0.02;;
- glBegin(GL_QUADS);
- glVertex2f(drawX-size*0.5, drawY-size*0.5);
- glVertex2f(drawX+size*0.5, drawY-size*0.5);
- glVertex2f(drawX+size*0.5, drawY+size*0.5);
- glVertex2f(drawX-size*0.5, drawY+size*0.5);
- glEnd();
Add Comment
Please, Sign In to add comment