mirror of
https://github.com/memononen/nanovg
synced 2026-09-26 16:19:07 +03:00
Allows setting the NVG_MAX_STATES number.
Currently, `NVG_MAX_STATES` is set to 32. But it’s not enough sometimes in my case. This commit allows defining the preferred `NVG_MAX_STATES` number.
This commit is contained in:
parent
397f3300bc
commit
8f41a7bef7
1 changed files with 3 additions and 0 deletions
|
|
@ -45,7 +45,10 @@
|
|||
#define NVG_INIT_POINTS_SIZE 128
|
||||
#define NVG_INIT_PATHS_SIZE 16
|
||||
#define NVG_INIT_VERTS_SIZE 256
|
||||
|
||||
#ifndef NVG_MAX_STATES
|
||||
#define NVG_MAX_STATES 32
|
||||
#endif
|
||||
|
||||
#define NVG_KAPPA90 0.5522847493f // Length proportional to radius of a cubic bezier handle for 90deg arcs.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue