|
|
@@ -24,8 +24,11 @@ |
|
|
|
#include "nanovg.h" |
|
|
|
#define FONTSTASH_IMPLEMENTATION |
|
|
|
#include "fontstash.h" |
|
|
|
|
|
|
|
#ifndef NVG_NO_STB |
|
|
|
#define STB_IMAGE_IMPLEMENTATION |
|
|
|
#include "stb_image.h" |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef _MSC_VER |
|
|
|
#pragma warning(disable: 4100) // unreferenced formal parameter |
|
|
@@ -788,6 +791,7 @@ void nvgFillPaint(NVGcontext* ctx, NVGpaint paint) |
|
|
|
nvgTransformMultiply(state->fill.xform, state->xform); |
|
|
|
} |
|
|
|
|
|
|
|
#ifndef NVG_NO_STB |
|
|
|
int nvgCreateImage(NVGcontext* ctx, const char* filename, int imageFlags) |
|
|
|
{ |
|
|
|
int w, h, n, image; |
|
|
@@ -816,6 +820,7 @@ int nvgCreateImageMem(NVGcontext* ctx, int imageFlags, unsigned char* data, int |
|
|
|
stbi_image_free(img); |
|
|
|
return image; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
int nvgCreateImageRGBA(NVGcontext* ctx, int w, int h, int imageFlags, const unsigned char* data) |
|
|
|
{ |
|
|
|