I\'m trying to draw simple circle with C++/OpenGl
my code is:
#include #include void Draw() { glClear(GL_COLOR_
I have done it using the following code,
glBegin(GL.GL_LINE_LOOP); for(int i =0; i <= 300; i++){ double angle = 2 * Math.PI * i / 300; double x = Math.cos(angle); double y = Math.sin(angle); gl.glVertex2d(x,y); } glEnd();