Space Engineers
Public Member Functions | Properties | List of all members
VRageRender.MyUpdateData Class Reference

Public Member Functions

 MyUpdateData ()
 
void CommitUpdateFrame ()
 Commits current frame as atomic operation and prepares new frame More...
 
MyUpdateFrame GetRenderFrame (out bool isPreFrame)
 Gets next frame for rendering, can return null in case there's nothing for rendering (no update frame submitted). When isPreFrame is true, don't handle draw messages, just process update messages and call method again. Pre frame must release messages and must be returned. Final frame is kept unmodified in queue, in case of slower update, so we can interpolate and draw frame again. More...
 
void ReturnPreFrame (MyUpdateFrame frame)
 PreFrame must be empty in this place More...
 

Properties

MyUpdateFrame CurrentUpdateFrame [get]
 

Detailed Description

Definition at line 11 of file MyUpdateData.cs.

Constructor & Destructor Documentation

VRageRender.MyUpdateData.MyUpdateData ( )
inline

Definition at line 18 of file MyUpdateData.cs.

Member Function Documentation

void VRageRender.MyUpdateData.CommitUpdateFrame ( )
inline

Commits current frame as atomic operation and prepares new frame

Definition at line 29 of file MyUpdateData.cs.

MyUpdateFrame VRageRender.MyUpdateData.GetRenderFrame ( out bool  isPreFrame)
inline

Gets next frame for rendering, can return null in case there's nothing for rendering (no update frame submitted). When isPreFrame is true, don't handle draw messages, just process update messages and call method again. Pre frame must release messages and must be returned. Final frame is kept unmodified in queue, in case of slower update, so we can interpolate and draw frame again.

Definition at line 46 of file MyUpdateData.cs.

void VRageRender.MyUpdateData.ReturnPreFrame ( MyUpdateFrame  frame)
inline

PreFrame must be empty in this place

Definition at line 63 of file MyUpdateData.cs.

Property Documentation

MyUpdateFrame VRageRender.MyUpdateData.CurrentUpdateFrame
get

Definition at line 16 of file MyUpdateData.cs.


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