]> git.sesse.net Git - casparcg/blobdiff - core/producer/text/utils/texture_atlas.h
[text_producer] Don't upload texture atlas to GPU every time the text or tracking...
[casparcg] / core / producer / text / utils / texture_atlas.h
index 4831158dfa9cd6c2bdf92023b0ddbad6ef51943f..e3ad0462d4ee24836d9be112ef6fd6f454a14d79 100644 (file)
@@ -80,15 +80,15 @@ class texture_atlas
 public:
        texture_atlas(const size_t w, const size_t h, const size_t d);
 
-       rect get_region(int width, int height);
+       rect get_region(int width, int height) const;
        void set_region(const size_t x, const size_t y, const size_t width, const size_t height, const unsigned char *data, const size_t stride, const color<double>& col);
        void clear();
 
-       size_t depth();
-       size_t width();
-       size_t height();
+       size_t depth() const;
+       size_t width() const;
+       size_t height() const;
 
-       unsigned char* data();
+       const uint8_t* data() const;
 
 private:
        struct impl;