diff options
author | Mikko Mononen <memon@inside.org> | 2014-01-02 22:43:27 +0400 |
---|---|---|
committer | Mikko Mononen <memon@inside.org> | 2014-01-02 22:43:27 +0400 |
commit | 297c2d5252980e285a961e87617c8471c9836ede (patch) | |
tree | 4b2c1c9bcea4eeb2379dcd221c94f564a19d927b /example | |
parent | f5b57c1876a503b1b7d92b0f8850c45b73db2214 (diff) |
Fixed issue #3
- added missing break after 'm'/'M' path command
- path command 'm'/'M' is converted to 'l'/'L' so that multiple
coordinate pairs behave correctly
- fixed rendering of first point on path
Diffstat (limited to 'example')
-rw-r--r-- | example/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/main.c b/example/main.c index d290dc2..dfc8c93 100644 --- a/example/main.c +++ b/example/main.c @@ -138,8 +138,8 @@ void drawControlPts(float* pts, int npts, char closed) glPointSize(6.0f); glColor4ubv(lineColor); - glVertex2f(pts[0],pts[1]); glBegin(GL_POINTS); + glVertex2f(pts[0],pts[1]); for (i = 0; i < npts-1; i += 3) { float* p = &pts[i*2]; glVertex2f(p[6],p[7]); @@ -149,9 +149,9 @@ void drawControlPts(float* pts, int npts, char closed) // Points glPointSize(3.0f); + glBegin(GL_POINTS); glColor4ubv(bgColor); glVertex2f(pts[0],pts[1]); - glBegin(GL_POINTS); for (i = 0; i < npts-1; i += 3) { float* p = &pts[i*2]; glColor4ubv(lineColor); |