#import <CoreGraphics/CGGeometry.h>#import <objc/objc.h>

Functions | |
| void | drawPointDeprecated (float x, float y) __attribute__((deprecated)) |
| void | drawPoint (CGPoint point) |
| void | drawPoints (CGPoint *points, unsigned int numberOfPoints) |
| void | drawLineDeprecated (float x1, float y1, float x2, float y2) __attribute__((deprecated)) |
| void | drawLine (CGPoint origin, CGPoint destination) |
| void | drawPolyDeprecated (float *poli, int points) __attribute__((deprecated)) |
| void | drawPoly (CGPoint *vertices, int numOfVertices, BOOL closePolygon) |
| void | drawCircleDeprecated (float x, float y, float radius, float angle, int segs) __attribute__((deprecated)) |
| void | drawCircle (CGPoint center, float radius, float angle, int segments, BOOL drawLineToCenter) |
You can change the color, width and other property by calling the glColor4ub(), glLineWitdh(), glPointSize().
| void drawCircle | ( | CGPoint | center, | |
| float | radius, | |||
| float | angle, | |||
| int | segments, | |||
| BOOL | drawLineToCenter | |||
| ) |
draws a circle given the center, radius and number of segments.
| void drawCircleDeprecated | ( | float | x, | |
| float | y, | |||
| float | radius, | |||
| float | angle, | |||
| int | segs | |||
| ) |
draws a circle given the center, radius and number of segments.
| void drawLine | ( | CGPoint | origin, | |
| CGPoint | destination | |||
| ) |
draws a line given the origin and destination point
| void drawLineDeprecated | ( | float | x1, | |
| float | y1, | |||
| float | x2, | |||
| float | y2 | |||
| ) |
draws a line given x1,y1 and x2,y2 coordinates
| void drawPoint | ( | CGPoint | point | ) |
draws a point given x and y coordinate
| void drawPointDeprecated | ( | float | x, | |
| float | y | |||
| ) |
draws a point given point.
| void drawPoints | ( | CGPoint * | points, | |
| unsigned int | numberOfPoints | |||
| ) |
draws an array of points.
| void drawPoly | ( | CGPoint * | vertices, | |
| int | numOfVertices, | |||
| BOOL | closePolygon | |||
| ) |
draws a poligon given a pointer to CGPoint coordiantes and the number of vertices. The polygon can be closed or open
| void drawPolyDeprecated | ( | float * | poli, | |
| int | points | |||
| ) |
draws a poligon given a pointer to float coordiantes and the number of vertices
1.5.8