diff options
| author | Juan Linietsky | 2015-04-06 21:48:20 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-04-06 21:48:20 -0300 |
| commit | b36e41cb7117757011e6f1ccc476ccc806219a58 (patch) | |
| tree | 56cc08bad161f167d9217b0621123dd0947ea763 /core/image.cpp | |
| parent | 5d99e15e43d5a446b35d48e8a3b08a478f1998a9 (diff) | |
| download | godot-b36e41cb7117757011e6f1ccc476ccc806219a58.tar.gz godot-b36e41cb7117757011e6f1ccc476ccc806219a58.tar.zst godot-b36e41cb7117757011e6f1ccc476ccc806219a58.zip | |
Added a PVRTC encoder for iOS
Diffstat (limited to 'core/image.cpp')
| -rw-r--r-- | core/image.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/image.cpp b/core/image.cpp index 17ee569b6..ea09787f0 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -134,6 +134,18 @@ void Image::get_mipmap_offset_and_size(int p_mipmap,int &r_ofs, int &r_size) con } +void Image::get_mipmap_offset_size_and_dimensions(int p_mipmap,int &r_ofs, int &r_size,int &w, int& h) const { + + + int ofs; + _get_mipmap_offset_and_size(p_mipmap,ofs,w,h); + int ofs2,w2,h2; + _get_mipmap_offset_and_size(p_mipmap+1,ofs2,w2,h2); + r_ofs=ofs; + r_size=ofs2-ofs; + +} + void Image::put_pixel(int p_x,int p_y, const Color& p_color,int p_mipmap){ ERR_FAIL_INDEX(p_mipmap,mipmaps+1); |
