mirror of
https://git.sr.ht/~calebccff/pbsplash
synced 2026-01-12 20:48:40 -09:00
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:
parent
2d79d8ad6a
commit
36b0e6780b
2 changed files with 10 additions and 2 deletions
|
|
@ -182,6 +182,8 @@ NSVGpath* nsvgDuplicatePath(NSVGpath* p);
|
||||||
// Deletes an image.
|
// Deletes an image.
|
||||||
void nsvgDelete(NSVGimage* image);
|
void nsvgDelete(NSVGimage* image);
|
||||||
|
|
||||||
|
NSVGshape** nsvgGetTextShapes(NSVGimage* image, char* text, int textLen);
|
||||||
|
|
||||||
#ifndef NANOSVG_CPLUSPLUS
|
#ifndef NANOSVG_CPLUSPLUS
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
@ -3088,4 +3090,4 @@ void nsvgDelete(NSVGimage* image)
|
||||||
free(image);
|
free(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,12 @@ void nsvgRasterize(NSVGrasterizer* r,
|
||||||
void nsvgDeleteRasterizer(NSVGrasterizer*);
|
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
|
#ifndef NANOSVGRAST_CPLUSPLUS
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
@ -1567,4 +1573,4 @@ void nsvgRasterize(NSVGrasterizer* r,
|
||||||
r->stride = 0;
|
r->stride = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue