Code Search for Developers
 
 
  

ceguitimesource.cc from The Nebula Device at Krugle


Show ceguitimesource.cc syntax highlighted

//------------------------------------------------------------------------------
//  ceui/ceguitimesource.cc
//  (c) 2006 Nebula2 Community
//------------------------------------------------------------------------------
#include "ceui/ceguitimesource.h"
#include "ceui/server.h"

namespace CEUI
{

ImplementRtti(CEUI::CeGuiTimeSource, Game::TimeSource);
ImplementFactory(CEUI::CeGuiTimeSource);

CeGuiTimeSource* CeGuiTimeSource::Singleton = NULL;

//------------------------------------------------------------------------------
/**
*/
CeGuiTimeSource::CeGuiTimeSource() {
    n_assert(Singleton == NULL);
    Singleton = this;
}

//------------------------------------------------------------------------------
/**
*/
CeGuiTimeSource::~CeGuiTimeSource() {
    n_assert(Singleton != NULL);
    Singleton = NULL;
}

//------------------------------------------------------------------------------
/**
    Distributes the current time to the GUI subsystems.
*/
void CeGuiTimeSource::UpdateTime(nTime frameTime) {
    TimeSource::UpdateTime(frameTime);
    CEUI::Server::Instance()->SetTime(time);
    CEUI::Server::Instance()->SetFrameTime(frameTime);
}

//------------------------------------------------------------------------------
/**
    Can never be paused...
*/
void CeGuiTimeSource::Pause() {
    // just return...
}

//------------------------------------------------------------------------------
/**
    Can never be paused...
*/
void CeGuiTimeSource::Continue() {
    // just return...
}

} // namespace Game




See more files for this project here

The Nebula Device

Realtime 3D game/visualization engine, written in C++, scriptable through Tcl/Tk, Python and Lua. Supports D3D and OpenGL for rendering, runs under Linux and Windows.

Project homepage: http://sourceforge.net/projects/nebuladevice
Programming language(s): C,C++,Python
License: other

  ceguitimesource.cc
  ceguitimesource.h
  logger.cc
  logger.h
  renderer.cc
  renderer.h
  resourceprovider.cc
  resourceprovider.h
  server.cc
  server.h
  texture.cc
  texture.h