Pyrogenesis  trunk
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CMessageInterpolate Class Reference

Prepare for rendering a new frame (set up model positions etc). More...

#include <MessageTypes.h>

Inheritance diagram for CMessageInterpolate:
Inheritance graph
[legend]
Collaboration diagram for CMessageInterpolate:
Collaboration graph
[legend]

Public Member Functions

virtual int GetType () const
 
virtual const char * GetScriptHandlerName () const
 
virtual const char * GetScriptGlobalHandlerName () const
 
virtual JS::Value ToJSVal (ScriptInterface &scriptInterface) const
 
 CMessageInterpolate (float deltaSimTime, float offset, float deltaRealTime)
 
- Public Member Functions inherited from CMessage
virtual ~CMessage ()
 
JS::Value ToJSValCached (ScriptInterface &) const
 

Static Public Member Functions

static CMessageFromJSVal (ScriptInterface &, JS::HandleValue val)
 

Public Attributes

float deltaSimTime
 Elapsed simulation time since previous interpolate, in seconds. More...
 
float offset
 Range [0, 1] (inclusive); fractional time of current frame between previous/next simulation turns. More...
 
float deltaRealTime
 Elapsed real time since previous interpolate, in seconds. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

Prepare for rendering a new frame (set up model positions etc).

Constructor & Destructor Documentation

CMessageInterpolate::CMessageInterpolate ( float  deltaSimTime,
float  offset,
float  deltaRealTime 
)
inline

Member Function Documentation

CMessage * CMessageInterpolate::FromJSVal ( ScriptInterface scriptInterface,
JS::HandleValue  val 
)
static
virtual const char* CMessageInterpolate::GetScriptGlobalHandlerName ( ) const
inlinevirtual

Implements CMessage.

virtual const char* CMessageInterpolate::GetScriptHandlerName ( ) const
inlinevirtual

Implements CMessage.

virtual int CMessageInterpolate::GetType ( void  ) const
inlinevirtual

Implements CMessage.

JS::Value CMessageInterpolate::ToJSVal ( ScriptInterface scriptInterface) const
virtual

Implements CMessage.

Member Data Documentation

float CMessageInterpolate::deltaRealTime

Elapsed real time since previous interpolate, in seconds.

float CMessageInterpolate::deltaSimTime

Elapsed simulation time since previous interpolate, in seconds.

This is similar to the elapsed real time, except it is scaled by the current simulation rate (and might indeed be zero).

float CMessageInterpolate::offset

Range [0, 1] (inclusive); fractional time of current frame between previous/next simulation turns.


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