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

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 (const ScriptRequest &rq) const
 
 CMessageInterpolate (float deltaSimTime, float offset, float deltaRealTime)
 
- Public Member Functions inherited from CMessage
virtual ~CMessage ()
 
virtual int GetType () const =0
 
virtual const char * GetScriptHandlerName () const =0
 
virtual const char * GetScriptGlobalHandlerName () const =0
 
virtual JS::Value ToJSVal (const ScriptRequest &) const =0
 
JS::Value ToJSValCached (const ScriptRequest &) const
 

Static Public Member Functions

static CMessageFromJSVal (const ScriptRequest &, 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::CMessageInterpolate ( float  deltaSimTime,
float  offset,
float  deltaRealTime 
)
inline

Member Function Documentation

◆ FromJSVal()

CMessage * CMessageInterpolate::FromJSVal ( const ScriptRequest rq,
JS::HandleValue  val 
)
static

◆ GetScriptGlobalHandlerName()

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

Implements CMessage.

◆ GetScriptHandlerName()

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

Implements CMessage.

◆ GetType()

virtual int CMessageInterpolate::GetType ( ) const
inlinevirtual

Implements CMessage.

◆ ToJSVal()

JS::Value CMessageInterpolate::ToJSVal ( const ScriptRequest rq) const
virtual

Implements CMessage.

Member Data Documentation

◆ deltaRealTime

float CMessageInterpolate::deltaRealTime

Elapsed real time since previous interpolate, in seconds.

◆ deltaSimTime

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).

◆ offset

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: