Class Direct3dRMObject
public class Direct3dRMObject implements IDirect3dRMObject
{
// Methods
public void addDestroyCallback(Id3drmCallback fn, IUnknown Arg);
public void deleteDestroyCallback(Id3drmCallback fn,
IUnknown args);
public Direct3dRMObject duplicate();
public int getAppData();
public String getClassName();
public String getName();
public void setAppData(int data);
public void setName(String name);
}
Applications use the methods of the Direct3dRMObject class to work with the object superclass of Direct3dRM objects.
public void addDestroyCallback(Id3drmCallback fn, IUnknown Arg);
Registers a function to be called when an object is destroyed.
Return Value:
No return value.
Parameter | Description |
fn
| The callback interface that contains a user-defined callback function that will be called when the object is destroyed.
|
Arg
| Application-defined data passed to the callback function. Because this function is called after the object has been destroyed, you should not call this function with the object as an argument.
|
public void deleteDestroyCallback(Id3drmCallback fn, IUnknown args);
Removes a function previously registered with the addDestroyCallback method.
Return Value:
No return value.
Parameter | Description |
fn
| The callback interface that contains a user-defined callback function that will be called when the object is destroyed.
|
args
| Application-defined data passed to the callback function.
|
public Direct3dRMObject duplicate();
Creates a copy of an object.
Return Value:
Returns the Direct3dRMObject object if successful; otherwise, returns null.
public int getAppData();
Retrieves the 32 bits of application-specific data in the object. The default value is 0.
Return Value:
Returns the data value defined by the application.
See Also: setAppData
public String getClassName();
Retrieves the name of the object's class.
Return Value:
Returns the name of the class.
public String getName();
Retrieves the object name.
Return Value:
Returns the name of the object.
See Also: setName
public void setAppData(int data);
Sets the 32 bits of application-specific data in the object.
Return Value:
No return value.
Parameter | Description |
data
| A user-defined integer. You cannot use this method to set a generic Java Object.
|
See Also: getAppData
public void setName(String name);
Sets the object's name.
Return Value:
No return value.
Parameter | Description |
name
| A String that contains the name of the object.
|
See Also: getName