include: add missing declarations

Add nsvgGetTextShapes() and nsvgRasterizeText() declarations outside of
the _IMPLEMENTATION areas, so the headerfiles can be used without
having _IMPLEMENTATION set.
This commit is contained in:
Oliver Smith 2022-07-31 21:10:06 +02:00 committed by Caleb Connolly
parent 2d79d8ad6a
commit 36b0e6780b
No known key found for this signature in database
GPG key ID: 0583312B195F64B6
2 changed files with 10 additions and 2 deletions

View file

@ -182,6 +182,8 @@ NSVGpath* nsvgDuplicatePath(NSVGpath* p);
// Deletes an image.
void nsvgDelete(NSVGimage* image);
NSVGshape** nsvgGetTextShapes(NSVGimage* image, char* text, int textLen);
#ifndef NANOSVG_CPLUSPLUS
#ifdef __cplusplus
}
@ -3088,4 +3090,4 @@ void nsvgDelete(NSVGimage* image)
free(image);
}
#endif
#endif

View file

@ -66,6 +66,12 @@ void nsvgRasterize(NSVGrasterizer* r,
void nsvgDeleteRasterizer(NSVGrasterizer*);
void nsvgRasterizeText(NSVGrasterizer* r,
NSVGimage* font, float tx, float ty, float scale,
unsigned char* dst, int w, int h, int stride,
char* text);
#ifndef NANOSVGRAST_CPLUSPLUS
#ifdef __cplusplus
}
@ -1567,4 +1573,4 @@ void nsvgRasterize(NSVGrasterizer* r,
r->stride = 0;
}
#endif
#endif