summaryrefslogtreecommitdiffstats
path: root/core/io/image.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-02-05 10:38:32 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-02-05 10:38:32 +0200
commit19f1d5afa9bb123a3d42cfd029e9d7862b3d5126 (patch)
tree87b410da9c765dcef318b8b317b14240f3be3725 /core/io/image.h
parentb4e2a24c1f62088b3f7ce0197afc90832fc25009 (diff)
downloadredot-engine-19f1d5afa9bb123a3d42cfd029e9d7862b3d5126.tar.gz
[TextServer / Font] Do not duplicate images to prevent unnecessary embedding.
Diffstat (limited to 'core/io/image.h')
-rw-r--r--core/io/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/image.h b/core/io/image.h
index be308b0ac1..7cb764c809 100644
--- a/core/io/image.h
+++ b/core/io/image.h
@@ -426,6 +426,10 @@ public:
void set_pixelv(const Point2i &p_point, const Color &p_color);
void set_pixel(int p_x, int p_y, const Color &p_color);
+ const uint8_t *ptr() const;
+ uint8_t *ptrw();
+ int64_t data_size() const;
+
void adjust_bcs(float p_brightness, float p_contrast, float p_saturation);
void set_as_black();