Browse Source

Merge pull request #649 from olliwang/maxstates

Allows setting the `NVG_MAX_STATES` number.
master
Mikko Mononen GitHub 3 years ago
parent
commit
7544c114e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/nanovg.c

+ 3
- 0
src/nanovg.c View File

@@ -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…
Cancel
Save