summaryrefslogtreecommitdiff
path: root/bin/tests
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-06 21:48:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-06 21:48:20 -0300
commitb36e41cb7117757011e6f1ccc476ccc806219a58 (patch)
tree56cc08bad161f167d9217b0621123dd0947ea763 /bin/tests
parent5d99e15e43d5a446b35d48e8a3b08a478f1998a9 (diff)
Added a PVRTC encoder for iOS
Diffstat (limited to 'bin/tests')
-rw-r--r--bin/tests/test_gui.cpp12
1 files changed, 6 insertions, 6 deletions
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<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