diff --git a/src/nanovg.c b/src/nanovg.c index 84d0957..5fdbd66 100644 --- a/src/nanovg.c +++ b/src/nanovg.c @@ -710,6 +710,12 @@ void nvgGlobalTint(NVGcontext* ctx, NVGcolor tint) state->tint = tint; } +NVGcolor nvgGetGlobalTint(NVGcontext* ctx) +{ + NVGstate* state = nvg__getState(ctx); + return state->tint; +} + void nvgTransform(NVGcontext* ctx, float a, float b, float c, float d, float e, float f) { NVGstate* state = nvg__getState(ctx); diff --git a/src/nanovg.h b/src/nanovg.h index 0e27722..b1c4e30 100644 --- a/src/nanovg.h +++ b/src/nanovg.h @@ -272,6 +272,7 @@ void nvgLineJoin(NVGcontext* ctx, int join); // Already transparent paths will get proportionally more transparent as well. void nvgGlobalAlpha(NVGcontext* ctx, float alpha); void nvgGlobalTint(NVGcontext* ctx, NVGcolor tint); +NVGcolor nvgGetGlobalTint(NVGcontext* ctx); // // Transforms