Merge pull request #62861 from samdze/image-size-vector2i

Make Image.get_size() return a Vector2i instead of a Vector2
This commit is contained in:
Rémi Verschelde 2022-08-08 12:55:07 +02:00 committed by GitHub
commit c8cdc10902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -416,8 +416,8 @@ int Image::get_height() const {
return height;
}
Vector2 Image::get_size() const {
return Vector2(width, height);
Vector2i Image::get_size() const {
return Vector2i(width, height);
}
bool Image::has_mipmaps() const {

View File

@ -209,7 +209,7 @@ private:
public:
int get_width() const; ///< Get image width
int get_height() const; ///< Get image height
Vector2 get_size() const;
Vector2i get_size() const;
bool has_mipmaps() const;
int get_mipmap_count() const;

View File

@ -250,7 +250,7 @@
</description>
</method>
<method name="get_size" qualifiers="const">
<return type="Vector2" />
<return type="Vector2i" />
<description>
Returns the image's size (width and height).
</description>