diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-25 17:46:30 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-25 17:46:30 +0100 |
commit | 5e6067f74e7ac072656f11ead0f22ec7f8e9c525 (patch) | |
tree | ca9e3758832d68ea1d9cf531c48d1962532d8dfa /tests | |
parent | 619746d51e91f02e7c5327f0c65ebb5952632bc7 (diff) | |
download | YAGE-5e6067f74e7ac072656f11ead0f22ec7f8e9c525.tar.gz YAGE-5e6067f74e7ac072656f11ead0f22ec7f8e9c525.zip |
Testing spritesheet
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spritesheettest.cpp | 15 |
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(); } |