aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-25 17:46:30 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-25 17:46:30 +0100
commit5e6067f74e7ac072656f11ead0f22ec7f8e9c525 (patch)
treeca9e3758832d68ea1d9cf531c48d1962532d8dfa /tests
parent619746d51e91f02e7c5327f0c65ebb5952632bc7 (diff)
downloadYAGE-5e6067f74e7ac072656f11ead0f22ec7f8e9c525.tar.gz
YAGE-5e6067f74e7ac072656f11ead0f22ec7f8e9c525.zip
Testing spritesheet
Diffstat (limited to 'tests')
-rw-r--r--tests/spritesheettest.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/spritesheettest.cpp b/tests/spritesheettest.cpp
index b801688b..84c4c1cc 100644
--- a/tests/spritesheettest.cpp
+++ b/tests/spritesheettest.cpp
@@ -1,7 +1,20 @@
-#include <yage/yage.h>
#include <gtest/gtest.h>
+#include <yage/yage.h>
+
+using namespace yage;
TEST(SpriteSheet, Load)
{
+ yage::init();
+ Window window;
+ window.create("SpriteSheet test", 800, 640);
+ window.hide();
+ SpriteSheet("resources/floor_atlas.png", "resources/floor_atlas.json");
+ yage::quit();
+}
+int main(int argc, char **argv)
+{
+ testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
}