This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 1 / 3 OpenGL Codes: 2D Circle (drawing) Written by Rosnita Friday, 06 May 2011 09:03 - glVertex2f(x + cx, y + cy);//output vertex } glEnd(); glFlush(); } 2. Call the above method in your display method: myDisplay() or display() glColor3f(0.0,0.0,0.0); drawCircle(100,100,10,50); 3. Add #include <math.h> library 2 / 3 OpenGL Codes: 2D Circle (drawing) Written by Rosnita Friday, 06 May 2011 09:03 - 3 / 3...
View Full Document
This note was uploaded on 08/17/2011 for the course CS 102 taught by Professor Halimah during the Summer '11 term at International Islamic University Malaysia.
- Summer '11