mirror of
https://github.com/Relintai/texture_packer.git
synced 2025-02-06 16:26:00 +01:00
Clang format.
This commit is contained in:
parent
b78d280a6e
commit
c62297108f
@ -311,11 +311,11 @@ void TextureLayerMerger::merge() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if VERSION_MAJOR < 4
|
#if VERSION_MAJOR < 4
|
||||||
_image->create(_width, _height, (_texture_flags & Texture::FLAG_MIPMAPS) != 0, Image::FORMAT_RGBA8, data);
|
_image->create(_width, _height, (_texture_flags & Texture::FLAG_MIPMAPS) != 0, Image::FORMAT_RGBA8, data);
|
||||||
#else
|
#else
|
||||||
_image->create(_width, _height, true, Image::FORMAT_RGBA8, data);
|
_image->create(_width, _height, true, Image::FORMAT_RGBA8, data);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureLayerMerger::write_base_color_to_array(PoolVector<uint8_t> &data) {
|
void TextureLayerMerger::write_base_color_to_array(PoolVector<uint8_t> &data) {
|
||||||
|
@ -20,6 +20,5 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
void register_texture_packer_types();
|
void register_texture_packer_types();
|
||||||
void unregister_texture_packer_types();
|
void unregister_texture_packer_types();
|
||||||
|
@ -87,11 +87,11 @@ void TextureMerger::set_packer(const Ref<TexturePacker> packer) {
|
|||||||
Vector<Variant> TextureMerger::get_textures() {
|
Vector<Variant> TextureMerger::get_textures() {
|
||||||
Vector<Variant> r;
|
Vector<Variant> r;
|
||||||
for (int i = 0; i < _textures.size(); i++) {
|
for (int i = 0; i < _textures.size(); i++) {
|
||||||
#if VERSION_MAJOR < 4
|
#if VERSION_MAJOR < 4
|
||||||
r.push_back(_textures[i].get_ref_ptr());
|
r.push_back(_textures[i].get_ref_ptr());
|
||||||
#else
|
#else
|
||||||
r.push_back(_textures[i]);
|
r.push_back(_textures[i]);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user