00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "config_rocket.h"
00016 #include "rocketFileInterface.h"
00017 #include "rocketInputHandler.h"
00018 #include "rocketRegion.h"
00019 #include "rocketSystemInterface.h"
00020
00021 #include "pandaSystem.h"
00022 #include "dconfig.h"
00023
00024 #include <Rocket/Core.h>
00025
00026 Configure(config_rocket);
00027 NotifyCategoryDef(rocket, "");
00028
00029 ConfigureFn(config_rocket) {
00030 init_librocket();
00031 }
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 void
00042 init_librocket() {
00043 static bool initialized = false;
00044 if (initialized) {
00045 return;
00046 }
00047 initialized = true;
00048
00049 RocketInputHandler::init_type();
00050 RocketRegion::init_type();
00051
00052 RocketFileInterface* fi = new RocketFileInterface;
00053 Rocket::Core::SetFileInterface(fi);
00054
00055 RocketSystemInterface* si = new RocketSystemInterface;
00056 Rocket::Core::SetSystemInterface(si);
00057
00058 Rocket::Core::Initialise();
00059 }