Created
November 1, 2012 21:29
-
-
Save clone1018/3996715 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//filled circle | |
float x1,y1,x2,y2; | |
float angle; | |
double radius=0.1; | |
x1 = 0.5,y1=0.6; | |
glColor3f(1.0,1.0,0.6); | |
glBegin(GL_TRIANGLE_FAN); | |
glVertex2f(x1,y1); | |
for (angle=1.0f;angle<361.0f;angle+=0.2) | |
{ | |
x2 = x1+sin(angle)*radius; | |
y2 = y1+cos(angle)*radius; | |
glVertex2f(x2,y2); | |
} | |
glEnd(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment