mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-02 17:51:35 -06:00
- Moved all OpenSpace headers to separate include directory - Added OpenSpaceTests binary with OPENSPACE_HAVE_TESTS define - Added CMake setting of BASE_DIR - Added OpenSpace initial tests for SceneGraph and SceneGraphNodes - Added OpenSpace initial tests for psc and pss - Restructured OpenSpace so no GL functions are called in constructors to make the classes testable - Todo: Make the base dir possible to set through command line argument and configuration file
31 lines
428 B
C++
31 lines
428 B
C++
#ifndef ENGINETIME_H
|
|
#define ENGINETIME_H
|
|
|
|
namespace openspace
|
|
{
|
|
|
|
class Time {
|
|
public:
|
|
virtual ~Time();
|
|
|
|
static void init();
|
|
static void deinit();
|
|
static Time& ref();
|
|
static bool isInitialized();
|
|
|
|
void setTime(const char* stringTime);
|
|
double getTime();
|
|
|
|
private:
|
|
static Time* this_;
|
|
Time(void);
|
|
Time(const Time& src);
|
|
Time& operator=(const Time& rhs);
|
|
|
|
double time_;
|
|
};
|
|
|
|
|
|
} // namespace openspace
|
|
|
|
#endif |