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:
|
||||
// Load
|
||||
SNVGImage* image;
|
||||
NSVGImage* image;
|
||||
image = nsvgParseFromFile("test.svg", "px", 96);
|
||||
printf("size: %f x %f\n", image->width, image->height);
|
||||
// Use...
|
||||
for (shape = image->shapes; shape != NULL; shape = shape->next) {
|
||||
for (path = shape->paths; path != NULL; path = path->next) {
|
||||
for (i = 0; i < path->npts-1; i += 3) {
|
||||
for (NSVGshape *shape = image->shapes; shape != NULL; shape = shape->next) {
|
||||
for (NSVGpath *path = shape->paths; path != NULL; path = path->next) {
|
||||
for (int i = 0; i < path->npts-1; i += 3) {
|
||||
float* p = &path->pts[i*2];
|
||||
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