Texture Functions Variant Parameters Globals Table of Contents

Time Info

Availability  LightWave® 6.5
Component  Layout
Component  lwrender.h

The time info global returns the time of the frame currently being rendered. As with other pointers to data, the pointer to the TimeInfo global should be reaquired each time prior to referencing to ensure it contains current values.

Global Call

   LWTimeInfo *timeinfo;
   timeinfo = global( LWTIMEINFO_GLOBAL, GFUSE_TRANSIENT );

The global function returns a pointer to an LWTimeInfo.

   typedef struct st_LWTimeInfo {
      LWTime  time;
      LWFrame frame;
   } LWTimeInfo;
time
The time in seconds of the frame currently being rendered.

frame
The frame number for the current frame.