IDirect3DRMMeshBuilder2

Applications use the methods of the IDirect3DRMMeshBuilder2 interface to interact with mesh objects. IDirect3DRMMeshBuilder2 has the same functionality as IDirect3DRMMeshBuilder and in addition has extended the IDirect3DRMMeshBuilder2::GenerateNormals2 method to give greater control over the mesh normals generated. IDirect3DRMMeshBuilder2 also allows you to retrieve a single mesh face with IDirect3DRMMeshBuilder2::GetFace.

This section is a reference to the methods of this interface. For a conceptual overview, see IDirect3DRMMesh, IDirect3DRMMeshBuilder, and IDirect3DRMMeshBuilder2 Interfaces.

The methods of the IDirect3DRMMeshBuilder2 interface can be organized into the following groups:

Color GetColorSource
  SetColor
  SetColorRGB
  SetColorSource
Creation GetBox
Faces AddFace
  AddFaces
  CreateFace
  GetFaceCount
  GetFace
  GetFaces
Loading Load
Meshes AddMesh
  CreateMesh
Miscellaneous AddFrame
  AddMeshBuilder
  ReserveSpace
  Save
  Scale
  SetMaterial
  Translate
Normals AddNormal
  GenerateNormals2
  SetNormal
Perspective GetPerspective
  SetPerspective
Rendering quality GetQuality
  SetQuality
Textures GetTextureCoordinates
  SetTexture
  SetTextureCoordinates
  SetTextureTopology
Vertices AddVertex
  GetVertexColor
  GetVertexCount
  GetVertices
  SetVertex
  SetVertexColor
  SetVertexColorRGB

The IDirect3DRMMeshBuilder2 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

AddRef

QueryInterface

Release

In addition, the IDirect3DRMMeshBuilder2 interface inherits the following methods from the IDirect3DRMObject interface:

AddDestroyCallback

Clone

DeleteDestroyCallback

GetAppData

GetClassName

GetName

SetAppData

SetName

The Direct3DRMMeshBuilder2 object is obtained by calling the IDirect3DRM::CreateMeshBuilder method.