Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class Direct3dRMAnimationSet

public class Direct3dRMAnimationSet implements 
            IDirect3dRMAnimationSet
{
  // Methods
  public void addAnimation(Direct3dRMAnimation aid);
  public void deleteAnimation(Direct3dRMAnimation aid);
  public void loadFromFileByPos(String filename, int position,
        int flags, ILoadTextureCallback c, IUnknown pUser,
        Direct3dRMFrame f);
  public void setTime(float time);
}

Applications use the methods of the Direct3dRMAnimationSet class to group Direct3dRMAnimation objects together, which can simplify the playback of complex animation sequences.

The Direct3dRMAnimationSet class inherits the following methods from the Direct3dRMObject class:

addDestroyCallback
deleteDestroyCallback
duplicate
getAppData
getClassName
getName
setAppData
setName

The Direct3dRMAnimationSet object is obtained by calling the createAnimationSet method.

Methods

addAnimation

public void addAnimation(Direct3dRMAnimation aid);

Adds an animation to the animation set.

Return Value:

No return value.

ParameterDescription
aid The Direct3dRMAnimation object to be added to the animation set.

deleteAnimation

public void deleteAnimation(Direct3dRMAnimation aid);

Removes a previously added animation from the animation set.

Return Value:

No return value.

ParameterDescription
aid The Direct3dRMAnimation object to be removed from the animation set.

loadFromFileByPos

public void loadFromFileByPos(String filename, int position, int flags,
        ILoadTextureCallback c, IUnknown pUser, Direct3dRMFrame f);

Loads an animation set.

Return Value:

No return value.

ParameterDescription
filename The name of the file that the object is to be loaded from.
position The position in the file to be loaded from. The value gives the object's order in the file. This parameter can be null.
flags A load options type.
c The callback interface that contains the load texture callback function called to load any textures used by the object that require special formatting. This parameter can be null.
pUser Application-defined data passed to the load texture callback function.
f The parent Direct3dRMFrame object. This prevents the frames referred to by the animation set from being created with a null parent.

Remarks:

By default, this method loads the first animation set in the file specified by the objSource parameter.

setTime

public void setTime(float time);

Sets the time for the animation set.

Return Value:

No return value.

ParameterDescription
time The new time.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.