VCRA-SZCZERBACKI-PointBasedRendering/timer.h

00001 #ifndef TIMER_H
00002 #define TIMER_H
00003 
00004 //=============================================================================
00005 //=============================================================================
00006 
00007 #include "def.h"
00008 
00009 //=============================================================================
00010 //=============================================================================
00011 
00012 class Timer
00013 {
00014 public:
00015         Timer( );
00016         ~Timer( );
00017 
00018         float getAge( );
00019         float sample( );
00020         float getDelta( ) const;
00021 private:
00022 
00023         float                   m_initialAge;
00024         float                   m_newAge;
00025         float                   m_prevAge;
00026 
00027         static UINT32   m_startTime;
00028         static UINT32   m_currentTime;
00029         static int              m_referenceCount;
00030 
00031     // prevent copying
00032         Timer( const Timer &s ) {}
00033     Timer &operator=( const Timer &s ) { return *this; }
00034 };
00035 
00036 //=============================================================================
00037 //=============================================================================
00038 
00039 #endif

Generated on Thu Feb 15 09:09:20 2007 for Surface Splating by  doxygen 1.5.1-p1