From b36e41cb7117757011e6f1ccc476ccc806219a58 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 6 Apr 2015 21:48:20 -0300 Subject: Added a PVRTC encoder for iOS --- bin/tests/test_gui.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/tests') diff --git a/bin/tests/test_gui.cpp b/bin/tests/test_gui.cpp index 17a6a4111c..70cff12c44 100644 --- a/bin/tests/test_gui.cpp +++ b/bin/tests/test_gui.cpp @@ -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 text = memnew( Texture ); - text->create_from_image(img); - tf->set_texture(text); + img.compress(Image::COMPRESS_PVRTC4); + Ref 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 -- cgit v1.2.3