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.
public void addAnimation(Direct3dRMAnimation aid);
Adds an animation to the animation set.
Return Value:
No return value.
public void deleteAnimation(Direct3dRMAnimation aid);
Removes a previously added animation from the animation set.
Return Value:
No return value.
public void loadFromFileByPos(String filename, int position, int flags,
ILoadTextureCallback c, IUnknown pUser, Direct3dRMFrame f);
Loads an animation set.
Return Value:
No return value.
| Parameter | Description |
| 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.
public void setTime(float time);
Sets the time for the animation set.
Return Value:
No return value.
| Parameter | Description |
| time
| The new time.
|