DarkBASIC Professional Help File

DX11 CREATE OBJECT CYLINDER

Creates a cylinder object of the given dimensions.

Syntax

    Return Dword = DX11 CREATE OBJECT CYLINDER(bottomRadius, topRadius, length, [segsAcross], [segsDown], [vertLayout])

Parameters

    bottomRadius

> Float
> The bottom radius of the cylinder to be created.

    topRadius

> Float
> The top radius of the cylinder to be created.

    length

> Float
> The length of the cylinder to be created.

    [Optional] segsAcross

> Dword
> The number of horizontal segments. Defaults to 18 if omitted.

    [Optional] segsDown

> Dword
> The number of vertical segments. Defaults to 1 if omitted.

    [Optional] vertLayout

> Dword
> The object will be created to conform to this vertex layout. Only POSITION, TEXCOORD0, COLOR0 and NORMAL data is created; any other data elements are set to 0. Will use a default VertexLayout (POSITION/COLOR/NORMAL/TEXCOORD) if omitted.

Returns

The created object.

See also

OBJECT Functions Menu
DX11 Function Categories