00001 #ifndef _IrrConsole_TestApp_h_
00002 #define _IrrConsole_TestApp_h_
00003 #include "IrrConsole/console.h"
00004 #include "IrrConsole/nodeViewer.h"
00005
00007 class IC_TestApp : public irr::IEventReceiver, public NodeViewer
00008 {
00009 public:
00010 IC_TestApp(const String str);
00011 virtual ~IC_TestApp();
00012 bool OnEvent(irr::SEvent event);
00013 void main(array<String>& args);
00014 const String getName() const{ return name; }
00015
00016
00017
00018
00019 void showModel();
00020 void showMap();
00021 void showTestNode();
00022 void hideNode();
00023
00024 protected:
00025 void init(array<String>& args);
00026 bool isRunning();
00027 void setRunning(bool bVal);
00028 bool run();
00029 void drawCaptions();
00030 private:
00031 bool bRunning;
00032 irr::IrrlichtDevice* device;
00033 irr::scene::ISceneNode* sceneNode;
00034 irr::scene::IAnimatedMesh* levelMesh;
00035 irr::scene::IAnimatedMesh* modelMesh;
00036 irr::video::ITexture* modelTexture;
00037 irr::video::ITexture* testTexture;
00038 irr::gui::IGUIFont* captionFont;
00039 String name;
00040 IC_Console console;
00041 array<WideString> captionText;
00042 u32 captionHeight;
00043 };
00044
00045 #endif