Skip to content

Commit

Permalink
add non-const Image::get_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Nov 11, 2024
1 parent 8cc3d2a commit 60f4657
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Image.hh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public:
inline bool get_has_alpha() const {
return this->has_alpha;
}
inline void* get_data() {
return this->data.raw;
}
inline const void* get_data() const {
return this->data.raw;
}
Expand Down Expand Up @@ -221,6 +224,9 @@ public:
inline size_t get_height() const {
return this->height;
}
inline void* get_data() {
return this->data;
}
inline const void* get_data() const {
return this->data;
}
Expand Down

0 comments on commit 60f4657

Please sign in to comment.