Merge pull request #66 from ewfuentes/typoFix
Fixed typo and added variable types
This commit is contained in:
commit
dc12d90586
@ -53,13 +53,13 @@ extern "C" {
|
|||||||
|
|
||||||
/* Example Usage:
|
/* Example Usage:
|
||||||
// Load
|
// Load
|
||||||
SNVGImage* image;
|
NSVGImage* image;
|
||||||
image = nsvgParseFromFile("test.svg", "px", 96);
|
image = nsvgParseFromFile("test.svg", "px", 96);
|
||||||
printf("size: %f x %f\n", image->width, image->height);
|
printf("size: %f x %f\n", image->width, image->height);
|
||||||
// Use...
|
// Use...
|
||||||
for (shape = image->shapes; shape != NULL; shape = shape->next) {
|
for (NSVGshape *shape = image->shapes; shape != NULL; shape = shape->next) {
|
||||||
for (path = shape->paths; path != NULL; path = path->next) {
|
for (NSVGpath *path = shape->paths; path != NULL; path = path->next) {
|
||||||
for (i = 0; i < path->npts-1; i += 3) {
|
for (int i = 0; i < path->npts-1; i += 3) {
|
||||||
float* p = &path->pts[i*2];
|
float* p = &path->pts[i*2];
|
||||||
drawCubicBez(p[0],p[1], p[2],p[3], p[4],p[5], p[6],p[7]);
|
drawCubicBez(p[0],p[1], p[2],p[3], p[4],p[5], p[6],p[7]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user