diff options
Diffstat (limited to 'main/tests/test_image.cpp')
| -rw-r--r-- | main/tests/test_image.cpp | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/main/tests/test_image.cpp b/main/tests/test_image.cpp index dbe011136..c57968ad1 100644 --- a/main/tests/test_image.cpp +++ b/main/tests/test_image.cpp @@ -28,26 +28,24 @@ /*************************************************************************/ #include "test_image.h" -#include "os/main_loop.h" +#include "io/image_loader.h" #include "math_funcs.h" +#include "os/main_loop.h" #include "print_string.h" -#include "io/image_loader.h" namespace TestImage { - class TestMainLoop : public MainLoop { bool quit; -public: - virtual void input_event(const InputEvent& p_event) { - +public: + virtual void input_event(const InputEvent &p_event) { } virtual void init() { - quit=false; + quit = false; } virtual bool iteration(float p_time) { @@ -59,21 +57,16 @@ public: } virtual void finish() { - } - }; - -MainLoop* test() { +MainLoop *test() { Image img; - ImageLoader::load_image("as1.png",&img); - - img.resize(512,512); + ImageLoader::load_image("as1.png", &img); - return memnew( TestMainLoop ); + img.resize(512, 512); + return memnew(TestMainLoop); } - } |
