diff options
author | falkTX <falktx@gmail.com> | 2014-05-24 04:23:27 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2014-05-24 04:23:27 +0100 |
commit | fb2966126a5a94797f048ea58b460a048fd4a0ea (patch) | |
tree | f18b384e64fcb756a450b7605cc9a9439b87d006 /dgl/NanoVG.hpp | |
parent | 5a65496535aa53e8d9b467beb7f6245e330fa090 (diff) |
NanoVG: Add constructor with custom atlas size
Diffstat (limited to 'dgl/NanoVG.hpp')
-rw-r--r-- | dgl/NanoVG.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp index 7d3787e0..8edc6a77 100644 --- a/dgl/NanoVG.hpp +++ b/dgl/NanoVG.hpp @@ -256,10 +256,16 @@ public: /** Constructor. + Uses 512x512 as default atlas size. */ NanoVG(); /** + Constructor using custom atlas size. + */ + NanoVG(int atlasWidth, int atlasHeight); + + /** Destructor. */ ~NanoVG(); @@ -780,7 +786,7 @@ protected: private: /** Widget display function. - Implemented internally to wrap begine/endFrame() automaticaly. + Implemented internally to wrap begin/endFrame() automaticaly. */ void onDisplay() override { |