Posted February 9, 20178 yr Hello, I draw a circular progress bar and I only got to do a ellipse, but I need a circle. I suggested what to use instead of GL_TRIANGLE_FAN that's GL_LINE_SMOOTH. But there is a problem, if you add GL_LINE_SMOOTH console will be a lot of OpenGL errors. My code: VertexBuffer buf = Tessellator.getInstance().getBuffer(); buf.begin(GL11.GL_TRIANGLE_FAN, DefaultVertexFormats.POSITION_COLOR); buf.pos(PosX, 20, 0).color(0, 0.5F, 0, 1).endVertex(); //Angles = 360, r = 12(radius) for (float i = angles; i > 0; i--) { rad = (i - 90) / 180 * PI; buf.pos(PosX + Math.cos(rad) * r, PosY + Math.sin(rad) * r, 0).color(0, 1, 0, 1).endVertex(); } Tessellator.getInstance().draw(); Error: [08:00:06] [Client thread/ERROR]: ########## GL ERROR ########## [08:00:06] [Client thread/ERROR]: @ Post render [08:00:06] [Client thread/ERROR]: 1280: Invalid enum Edited February 9, 20178 yr by WildHeart
February 9, 20178 yr You know...if you can get an ellipse...you can make it a circle... Circles are just special case ellipses... Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.