 | MeshHelperCreateTeapot Method |
Creates a new submesh that represents a teapot using triangles.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntaxpublic static Submesh CreateTeapot(
GraphicsDevice graphicsDevice,
float size,
int tessellation
)
Public Shared Function CreateTeapot (
graphicsDevice As GraphicsDevice,
size As Single,
tessellation As Integer
) As Submesh
public:
static Submesh^ CreateTeapot(
GraphicsDevice^ graphicsDevice,
float size,
int tessellation
)
static member CreateTeapot :
graphicsDevice : GraphicsDevice *
size : float32 *
tessellation : int -> Submesh
Parameters
- graphicsDevice
- Type: GraphicsDevice
The graphics device. - size
- Type: SystemSingle
The size of the teapot. - tessellation
- Type: SystemInt32
The tessellation of the teapot in the range [1, 18].
Return Value
Type:
SubmeshA new
Submesh that represents a teapot.
Exceptions
Remarks
See Also