summaryrefslogtreecommitdiff
path: root/scene/resources/dynamic_font_stb.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-07 18:25:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-07 18:26:38 -0300
commit2ab83e1abbf5ee6d00e16056a9e9394114026f28 (patch)
tree7efbb375cc4d00d8e8589fcf1b6a1303bec5df2d /scene/resources/dynamic_font_stb.h
parent2a38a5eaa844043b846e03d6655f84caf8a31e74 (diff)
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
Diffstat (limited to 'scene/resources/dynamic_font_stb.h')
-rw-r--r--scene/resources/dynamic_font_stb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/dynamic_font_stb.h b/scene/resources/dynamic_font_stb.h
index ad7ca0009d..07a3e5ee6c 100644
--- a/scene/resources/dynamic_font_stb.h
+++ b/scene/resources/dynamic_font_stb.h
@@ -18,8 +18,8 @@ class DynamicFontData : public Resource {
bool valid;
- DVector<uint8_t> font_data;
- DVector<uint8_t>::Read fr;
+ PoolVector<uint8_t> font_data;
+ PoolVector<uint8_t>::Read fr;
const uint8_t* last_data_ptr;
struct KerningPairKey {
@@ -56,7 +56,7 @@ friend class DynamicFont;
Ref<DynamicFontAtSize> _get_dynamic_font_at_size(int p_size);
public:
- void set_font_data(const DVector<uint8_t>& p_font);
+ void set_font_data(const PoolVector<uint8_t>& p_font);
DynamicFontData();
~DynamicFontData();
};
@@ -71,7 +71,7 @@ class DynamicFontAtSize : public Reference {
struct CharTexture {
- DVector<uint8_t> imgdata;
+ PoolVector<uint8_t> imgdata;
int texture_size;
Vector<int> offsets;
Ref<ImageTexture> texture;