15 #include "config_rocket.h"
16 #include "rocketFileInterface.h"
17 #include "rocketInputHandler.h"
18 #include "rocketRegion.h"
19 #include "rocketSystemInterface.h"
21 #include "pandaSystem.h"
23 #include "default_font.h"
26 #define Factory RocketFactory
27 #include <Rocket/Core.h>
30 Configure(config_rocket);
31 NotifyCategoryDef(rocket,
"");
33 ConfigureFn(config_rocket) {
47 static bool initialized =
false;
53 RocketInputHandler::init_type();
54 RocketRegion::init_type();
56 if (rocket_cat->is_debug()) {
57 rocket_cat->debug() <<
"Initializing libRocket library.\n";
61 Rocket::Core::SetFileInterface(fi);
64 Rocket::Core::SetSystemInterface(si);
66 Rocket::Core::Initialise();
72 #ifdef COMPILE_IN_DEFAULT_FONT
75 Rocket::Core::FontDatabase::LoadFontFace(default_font_data, default_font_size);
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
This class is used as a namespace to group several global properties of Panda.
void add_system(const string &system)
Intended for use by each subsystem to register itself at startup.
This is an implementation of SystemInterface that redirects the log output to Panda's notify system...
Implementation of FileInterface to allow libRocket to read files from the virtual file system...