This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
nanovg
mirror of
https://github.com/VCVRack/nanovg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Add nvgGetGlobalTint().
shared-context
Andrew Belt
3 years ago
parent
911b7edf17
commit
3974a8b856
2 changed files
with
7 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
src/nanovg.c
+1
-0
src/nanovg.h
+ 6
- 0
src/nanovg.c
View File
@@ -710,6 +710,12 @@ void nvgGlobalTint(NVGcontext* ctx, NVGcolor tint)
state->tint = 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)
void nvgTransform(NVGcontext* ctx, float a, float b, float c, float d, float e, float f)
{
{
NVGstate* state = nvg__getState(ctx);
NVGstate* state = nvg__getState(ctx);
+ 1
- 0
src/nanovg.h
View File
@@ -272,6 +272,7 @@ void nvgLineJoin(NVGcontext* ctx, int join);
// Already transparent paths will get proportionally more transparent as well.
// Already transparent paths will get proportionally more transparent as well.
void nvgGlobalAlpha(NVGcontext* ctx, float alpha);
void nvgGlobalAlpha(NVGcontext* ctx, float alpha);
void nvgGlobalTint(NVGcontext* ctx, NVGcolor tint);
void nvgGlobalTint(NVGcontext* ctx, NVGcolor tint);
NVGcolor nvgGetGlobalTint(NVGcontext* ctx);
//
//
// Transforms
// Transforms
Write
Preview
Loading…
Cancel
Save