mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
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:
commit
c8cdc10902
@ -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 {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user