Panda3D

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