demo.h (488B)
1 #ifndef DEMO_H 2 #define DEMO_H 3 4 #include "nanovg/nanovg.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 struct DemoData { 11 int fontNormal, fontBold, fontIcons, fontEmoji; 12 int images[12]; 13 }; 14 typedef struct DemoData DemoData; 15 16 int loadDemoData(NVGcontext *vg, DemoData *data); 17 void freeDemoData(NVGcontext *vg, DemoData *data); 18 void renderDemo(NVGcontext *vg, float mx, float my, float width, float height, 19 float t, int blowup, DemoData *data); 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif // DEMO_H