aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/nanovg/src/nanovg.c
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/nanovg/src/nanovg.c')
-rw-r--r--subprojects/d2tk/nanovg/src/nanovg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/subprojects/d2tk/nanovg/src/nanovg.c b/subprojects/d2tk/nanovg/src/nanovg.c
index f82f76c..f642788 100644
--- a/subprojects/d2tk/nanovg/src/nanovg.c
+++ b/subprojects/d2tk/nanovg/src/nanovg.c
@@ -841,6 +841,11 @@ void nvgUpdateImage(NVGcontext* ctx, int image, const unsigned char* data)
ctx->params.renderUpdateTexture(ctx->params.userPtr, image, 0,0, w,h, data);
}
+void nvgUpdateSubImage(NVGcontext* ctx, int image, const unsigned char* data, int x, int y, int w, int h)
+{
+ ctx->params.renderUpdateTexture(ctx->params.userPtr, image, x,y, w,h, data);
+}
+
void nvgImageSize(NVGcontext* ctx, int image, int* w, int* h)
{
ctx->params.renderGetTextureSize(ctx->params.userPtr, image, w, h);