summaryrefslogtreecommitdiff
path: root/dgl/NanoVG.hpp
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2018-01-01 13:17:36 +0100
committerfalkTX <falktx@gmail.com>2018-01-01 13:17:36 +0100
commitd6d1d3b55c2737a9a0c13f69ee76238917ad62e3 (patch)
treec130b6c4cf970810e634a07078a318b055d18a3d /dgl/NanoVG.hpp
parent5f18defb72bd2257b72d2f7a26f6f24f5affcfb5 (diff)
Add DGL_NO_SHARED_RESOURCES; Fix build
Diffstat (limited to 'dgl/NanoVG.hpp')
-rw-r--r--dgl/NanoVG.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp
index a7e68cac..e94da105 100644
--- a/dgl/NanoVG.hpp
+++ b/dgl/NanoVG.hpp
@@ -20,7 +20,9 @@
#include "Color.hpp"
#include "Widget.hpp"
-#define NANOVG_DEJAVU_SANS_TTF "__dpf_dejavusans_ttf__"
+#ifndef DGL_NO_SHARED_RESOURCES
+# define NANOVG_DEJAVU_SANS_TTF "__dpf_dejavusans_ttf__"
+#endif
struct NVGcontext;
struct NVGpaint;
@@ -844,10 +846,12 @@ public:
*/
int textBreakLines(const char* string, const char* end, float breakRowWidth, TextRow& rows, int maxRows);
+#ifndef DGL_NO_SHARED_RESOURCES
/**
Load DPF's internal shared resources for this NanoVG class.
*/
virtual void loadSharedResources();
+#endif
private:
NVGcontext* const fContext;