Code Search for Developers
 
 
  

ceguitimesource.h from The Nebula Device at Krugle


Show ceguitimesource.h syntax highlighted

//------------------------------------------------------------------------------
//  ceui/ceguitimesource.h
//  (c) 2006 Nebula2 Community
//------------------------------------------------------------------------------
#ifndef CEUI_CEGUITIMESOURCE_H
#define CEUI_CEGUITIMESOURCE_H

#include "game/time/timesource.h"

namespace CEUI
{

class CeGuiTimeSource : public Game::TimeSource
{
    DeclareRtti;
    DeclareFactory(CeGuiTimeSource);

private:
    static CeGuiTimeSource* Singleton;

public:
    /// constructor
    CeGuiTimeSource();
    /// destructor
    virtual ~CeGuiTimeSource();
    /// get instance pointer
    static CeGuiTimeSource* Instance();
    /// update current time (called by time manager)
    virtual void UpdateTime(nTime frameTime);
    /// pause the time source (increments pause counter)
    virtual void Pause();
    /// resume the time source (decrements pause counter)
    virtual void Continue();
};

//------------------------------------------------------------------------------
/**
*/
inline
CeGuiTimeSource* CeGuiTimeSource::Instance() {
    n_assert(Singleton != NULL);
    return Singleton;
}

} // namespace CEUI
//------------------------------------------------------------------------------
#endif




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