Added a PVRTC encoder for iOS

This commit is contained in:
Juan Linietsky
2015-04-06 21:48:20 -03:00
parent 5d99e15e43
commit b36e41cb71
25 changed files with 1648 additions and 16 deletions

View File

@@ -132,7 +132,7 @@ public:
frame->add_child( button );
#if 0
Sprite *tf = memnew( Sprite );
frame->add_child(tf);
Image img;
@@ -140,14 +140,14 @@ public:
img.resize(512,512);
img.generate_mipmaps();
img.compress();
Ref<Texture> text = memnew( Texture );
text->create_from_image(img);
tf->set_texture(text);
img.compress(Image::COMPRESS_PVRTC4);
Ref<ImageTexture> tt = memnew( ImageTexture );
tt->create_from_image(img);
tf->set_texture(tt);
tf->set_pos(Point2(50,50));
//tf->set_scale(Point2(0.3,0.3));
#if 0
return;
#endif