mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Added a new helper method to image.
This commit is contained in:
parent
11e474ae3b
commit
cc64dee592
@ -1685,6 +1685,9 @@ const uint8_t *Image::datar() const {
|
||||
uint8_t *Image::dataw() {
|
||||
return data.dataw();
|
||||
}
|
||||
int Image::get_data_size() const {
|
||||
return data.size();
|
||||
}
|
||||
|
||||
void Image::create(int p_width, int p_height, bool p_use_mipmaps, Format p_format) {
|
||||
ERR_FAIL_COND_MSG(p_width <= 0, "Image width must be greater than 0.");
|
||||
|
@ -212,6 +212,7 @@ public:
|
||||
Vector<uint8_t> get_data() const;
|
||||
const uint8_t* datar() const;
|
||||
uint8_t* dataw();
|
||||
int get_data_size() const;
|
||||
|
||||
Image();
|
||||
Image(int p_width, int p_height, bool p_use_mipmaps, Format p_format);
|
||||
|
Loading…
Reference in New Issue
Block a user