Packages
 In this topic

*Methods

 

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

 


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.

Methods

addDestroyCallback

public void addDestroyCallback(Id3drmCallback fn, IUnknown Arg);

Registers a function to be called when an object is destroyed.

Return Value:

No return value.

ParameterDescription
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.

deleteDestroyCallback

public void deleteDestroyCallback(Id3drmCallback fn, IUnknown args);

Removes a function previously registered with the addDestroyCallback method.

Return Value:

No return value.

ParameterDescription
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.

duplicate

public Direct3dRMObject duplicate();

Creates a copy of an object.

Return Value:

Returns the Direct3dRMObject object if successful; otherwise, returns null.

getAppData

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

getClassName

public String getClassName();

Retrieves the name of the object's class.

Return Value:

Returns the name of the class.

getName

public String getName();

Retrieves the object name.

Return Value:

Returns the name of the object.

See Also: setName

setAppData

public void setAppData(int data);

Sets the 32 bits of application-specific data in the object.

Return Value:

No return value.

ParameterDescription
data A user-defined integer. You cannot use this method to set a generic Java Object.

See Also: getAppData

setName

public void setName(String name);

Sets the object's name.

Return Value:

No return value.

ParameterDescription
name A String that contains the name of the object.

See Also: getName

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