25 #define Factory RocketFactory 26 #include <Rocket/Core.h> 29 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_ROCKET) 30 #error Buildsystem error: BUILDING_ROCKET not defined 33 Configure(config_rocket);
34 NotifyCategoryDef(rocket,
"");
36 ConfigureFn(config_rocket) {
48 static bool initialized =
false;
54 RocketInputHandler::init_type();
55 RocketRegion::init_type();
57 if (rocket_cat->is_debug()) {
58 rocket_cat->debug() <<
"Initializing libRocket library.\n";
62 Rocket::Core::SetFileInterface(fi);
65 Rocket::Core::SetSystemInterface(si);
67 Rocket::Core::Initialise();
73 #ifdef COMPILE_IN_DEFAULT_FONT 76 Rocket::Core::FontDatabase::LoadFontFace(default_font_data, default_font_size);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is used as a namespace to group several global properties of Panda.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_librocket()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an implementation of SystemInterface that redirects the log output to Panda's notify system.
void add_system(const std::string &system)
Intended for use by each subsystem to register itself at startup.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Implementation of FileInterface to allow libRocket to read files from the virtual file system.