Download (GL) Manual - BiPOM Electronics
Transcript
DrawArc Draws an arc of circle int DrawArc( int xCenter, int yCenter, int Radius, float StartAngle, float ArcAngle // X coordinate of the center point // Y coordinate of the center point // Radius // Start angle of the arc // Arc angle ); Parameters: xCenter [in] X coordinate of the center point yCenter [in] Y coordinate of the center point Radius [in] Radius of the arc StartAngle [in] Start angle of the arc in radians ArcAngle [in] Arc angle in radians Return values: GL_OK on success. GL_ERROR on error. Note: Arc is always drawn in counterclockwise direction Arc angle StartAngle Center point Examples: // Draw arc DrawArc(50, 50. 0, PI); // Flush to real hardware RenderBuffer(); Radius