Creates new XMaterialMesh mesh from the resource resource.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

Parameters

resource
Type: SGP.XUtility..::.IXResourceLocation
The IXResourceLocation source defining the mesh location.
cull
Type: SGP.XSpace..::.XMaterialCullMode
The Cull mode of filling the 3D faces.

Return Value

Returns the created XMaterialMesh mesh.

Exceptions

ExceptionCondition
System..::.ArgumentNullException resource is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also