cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

gvTimer_LINUX Class Reference

linux using timer. More...

#include <gv_timer.h>

Inheritance diagram for gvTimer_LINUX:

Inheritance graph
[legend]
Collaboration diagram for gvTimer_LINUX:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 gvTimer_LINUX (void)
unsigned int getTime (void)
 returns the current time in milliseconds
virtual void initTimer (void)
 initializes the real timer
void setTime (unsigned int time)
 sets the current virtual (game) time
void stopTimer (void)
 stops the virtual (game) timer
void startTimer (void)
 starts the game timer
void setSpeed (float speed)
 sets the speed of the virtual timer
float getSpeed (void)
 gets the speed of the virtual timer
bool isStopped (void)
 returns if the timer currently is stopped
void tick (void)
 makes the virtual timer update the time value based on the real time
virtual int Refresh (void)
 timer update
virtual void Reset (void)
 reset timer.
unsigned int getRealTime (void)
 returns the current real time in milliseconds
unsigned int getStaticTime (void)
unsigned int getDT (void)
float getDTF (void)

Public Attributes

int frames
 number of frames
float frametime
 time elapsed in the last frame.
double fake_value
 fake multiply timer value.

Private Member Functions

void initVirtualTimer ()

Private Attributes

float VirtualTimerSpeed
signed int VirtualTimerStopCounter
unsigned int StartRealTime
unsigned int LastVirtualTime
unsigned int StaticTime
unsigned int DeltaTime
 time elapsed in the last frame.
float fdt

Detailed Description

linux using timer.

Definition at line 75 of file gv_timer.h.


Constructor & Destructor Documentation

gvTimer_LINUX::gvTimer_LINUX ( void   ) 


Member Function Documentation

unsigned int gvTimer_LINUX::getTime ( void   ) 

returns the current time in milliseconds

virtual void gvTimer_LINUX::initTimer ( void   )  [virtual]

initializes the real timer

Reimplemented from gv_iTimer.

void gvTimer_LINUX::setTime ( unsigned int  time  ) 

sets the current virtual (game) time

void gvTimer_LINUX::stopTimer ( void   ) 

stops the virtual (game) timer

void gvTimer_LINUX::startTimer ( void   ) 

starts the game timer

void gvTimer_LINUX::setSpeed ( float  speed  ) 

sets the speed of the virtual timer

float gvTimer_LINUX::getSpeed ( void   ) 

gets the speed of the virtual timer

bool gvTimer_LINUX::isStopped ( void   ) 

returns if the timer currently is stopped

void gvTimer_LINUX::tick ( void   ) 

makes the virtual timer update the time value based on the real time

virtual int gvTimer_LINUX::Refresh ( void   )  [virtual]

timer update

Reimplemented from gv_iTimer.

virtual void gvTimer_LINUX::Reset ( void   )  [virtual]

reset timer.

Reimplemented from gv_iTimer.

unsigned int gvTimer_LINUX::getRealTime ( void   ) 

returns the current real time in milliseconds

unsigned int gvTimer_LINUX::getStaticTime ( void   ) 

unsigned int gvTimer_LINUX::getDT ( void   ) 

float gvTimer_LINUX::getDTF ( void   ) 

void gvTimer_LINUX::initVirtualTimer (  )  [private]


Member Data Documentation

number of frames

Definition at line 79 of file gv_timer.h.

Definition at line 119 of file gv_timer.h.

Definition at line 120 of file gv_timer.h.

unsigned int gvTimer_LINUX::StartRealTime [private]

Definition at line 121 of file gv_timer.h.

unsigned int gvTimer_LINUX::LastVirtualTime [private]

Definition at line 122 of file gv_timer.h.

unsigned int gvTimer_LINUX::StaticTime [private]

Definition at line 123 of file gv_timer.h.

unsigned int gvTimer_LINUX::DeltaTime [private]

time elapsed in the last frame.

Definition at line 125 of file gv_timer.h.

float gvTimer_LINUX::fdt [private]

Definition at line 126 of file gv_timer.h.

time elapsed in the last frame.

Definition at line 129 of file gv_timer.h.

fake multiply timer value.

Definition at line 131 of file gv_timer.h.


The documentation for this class was generated from the following file:

Copyright(C) gvSystem & GamePlus All Rights Reserved.