IDrawParams interface

Ashley's avatar
Medal
Construct Team Founder
Published 14 Nov, 2017
122 words
<1 min

The IDrawParams interface provides additional parameters to a Draw() call in the SDK.

This interface cannot be directly constructed. It is only available in the Draw() call.

Methods

GetDt()

Return delta-time, the time since the last frame, in seconds. This is typically approximately 1/60th of a second (0.01666...). This value is only valid when the Layout View is continually scrolling, such as when dragging an instance to the edge of the Layout View window. Any other time it will be set to a dummy non-zero value, since there wasn't a frame immediately preceding the current one.

GetLayoutView()

Return an ILayoutView interface representing the current Layout View being drawn. This allows access to features of the Layout View in drawing code.