Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void drawCircle(float x, float y, float radius, double angleBegin, double angleEnd){
- GL11.glBegin(GL11.GL_TRIANGLE_FAN);
- GL11.glVertex2f(x, y);
- for(double i = angleBegin; i <= angleEnd; i += Math.PI/40){
- GL11.glVertex2f(x + ((float)Math.cos(i) * radius), y + ((float)Math.sin(i) * radius));
- break;
- }
- GL11.glEnd();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement