LAnimationWindow::EnableAutoLoop

#include "ltwrappr.h"

L_BOOL LAnimationWindow::EnableAutoLoop(bAutoLoop=TRUE)

L_BOOL bAutoLoop;

/* flag that indicates whether to enable auto looping */

Enables or disables auto looping.

Parameter

Description

bAutoLoop

Flag that indicates whether to enable auto looping. Possible values are:

 

Value

Meaning

 

TRUE

Enable auto looping.

 

FALSE

Disable auto looping.

Returns

The previous state.

Comments

When auto loop is enabled, animation playback will always loop, even if you call LAnimationWindow::EnableLoop(FALSE).

When auto loop is disabled, animation playback looping will depend on the last call to LAnimationWindow::EnableLoop.

Required DLLs and Libraries

LTDIS
LTDLG
LTEFX
LTFIL
LTIMG
LTSCR
LTTWN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LAnimationWindow::LAnimationWindow, LAnimationWindow::IsAutoLoopEnabled, LAnimationWindow::EnableLoop, Class Members

Topics:

Implementing Animation

Example

For an example, refer to LAnimationWindow::IsAutoLoopEnabled.