#
CwWaitOnRender

### Syntax:

    call CwWaitOnRender viewHandle

            viewHandle      (handle) The handle to a view.

### Description:

This procedure pauses the current script until rendering is finished. When this procedure is called, it will not return until rendering on the view specified by "viewHandle" is finished. If CwStopRender has been called on the view, calling CwWaitOnRender forces the view to be rendered nonetheless.

### Example:

    /* Crude animation:  Move an object called "star" across the screen. */
    vh = CwGetCurrentView()
    foo = CwGetHandleFromObjectName( vh, "star" )
    do i = 1 to 10
            call CwSetPosition foo, i, 5, 3, 3, 0, 0
            call CwWaitOnRender vh
            end

### Remarks:

CwWaitOnRender will return immediately if the render engine is idle.

Functions by NAME | Index | Functions by PURPOSE