Panda3D
 All Classes Functions Variables Enumerations
rocketSystemInterface.h
1 // Filename: rocketSystemInterface.h
2 // Created by: rdb (03Nov11)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ROCKET_SYSTEM_INTERFACE_H
16 #define ROCKET_SYSTEM_INTERFACE_H
17 
18 #include "config_rocket.h"
19 
20 #include <Rocket/Core/SystemInterface.h>
21 #include <Rocket/Core/Log.h>
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : RocketSystemInterface
25 // Description : This is an implementation of SystemInterface
26 // that redirects the log output to Panda's notify
27 // system.
28 ////////////////////////////////////////////////////////////////////
29 class RocketSystemInterface : public Rocket::Core::SystemInterface {
30 public:
31  float GetElapsedTime();
32  bool LogMessage(Rocket::Core::Log::Type type, const Rocket::Core::String& message);
33 };
34 
35 #endif
This is an implementation of SystemInterface that redirects the log output to Panda&#39;s notify system...
bool LogMessage(Rocket::Core::Log::Type type, const Rocket::Core::String &message)
Log the specified message.
float GetElapsedTime()
Get the number of seconds elapsed since the start of the application.