Microsoft SDK for Java

Direct3dRM Class Methods

The Direct3dRM Class contains the following methods:

addSearchPath adds a list of directories to the end of the current file search path.
createAnimation creates an empty Direct3dRMAnimation object.
createAnimationSet creates an empty Direct3dRMAnimationSet object.
createColorRGB creates an RGB color value.
createDevice is not implemented on the Windows platform.
createDeviceFromClipper creates a Microsoft® Direct3DRM windows device by using a specified DirectDrawClipper object.
createDeviceFromD3D creates a Microsoft ®Direct3dRM Windows® device by using specified Direct3d objects.
createDeviceFromSurface creates a Microsoft® Windows® device for rendering from the specified DirectDraw surfaces.
createFace creates a Direct3dRMFace object.
createFrame creates a new child frame of the given parent frame.
createLight creates a new light source with the given type and color.
createLightRGB creates a new light source with the given type and color.
createMaterial creates a material with the given specular property.
createMesh creates a new mesh object with no faces.
createMeshBuilder creates a new mesh builder object.
createShadow creates a shadow by using the specified visual and light, projecting the shadow onto the specified plane.
createShadowFromFrame creates a shadow by using the specified frame and light, projecting the shadow onto the specified plane.
createShadowFromMesh creates a shadow by using the specified mesh and light, projecting the shadow onto the specified plane.
createShadowFromMeshBuilder creates a shadow by using the specified mesh builder and light, projecting the shadow onto the specified plane.
createTexture creates a texture from an image in memory.
createTextureFromSurface creates a texture from a specified DirectDraw surface.
createUserVisual creates an application-defined visual object, which can then be added to a scene and rendered by using an application-defined handler.
createViewport creates a viewport on a device with device coordinates (xPos, yPos) to (xPos + width, yPos + height).
createWrap creates a wrapping function that can be used to assign texture coordinates to faces and meshes.
enumerateObjects calls the callback function specified by the fn parameter on each of the active Direct3dRM objects.
getDevices returns all the Direct3dRM devices that have been created in the system.
getNamedObject retrieves a Direct3dRMObject object, given its name.
getSearchPath returns the current file search path.
loadFromFileByPos loads an object.
loadTexture loads a texture from the specified file.
loadTextureFromResource loads a texture from a specified resource.
setDefaultTextureColors sets the default colors to be used for a Direct3dRMTexture object.
setDefaultTextureShades sets the default shades to be used for an Direct3dRMTexture object.
setSearchPath sets the current file search path from a list of directories.
tick performs the Direct3dRM system heartbeat.
vectorAdd calculates the sum of two vectors.
vectorCrossProduct calculates the cross-product of two vectors.
vectorDotProduct calculates the dot-product of two vectors.
vectorModulus calculates the modulus of a vector.
vectorNormalise normalizes a vector.
vectorRandom randomizes a vector.
vectorReflect reflects a vector, given a vector ray and a vector normal.
vectorRotate rotates a vector, given a ray, vector, axis, and amount to rotate.
vectorScale scales one vector to another by a specified factor.
vectorSubtract subtracts one vector from another.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.