DarkBASIC Professional Help File

DX11 CREATE OBJECT QUAD

Creates a quad (plane) object of the given dimensions.
The quad is initially rotated so that it faces the negative Z axis. If you want a "floor plane" that faces upwards
you would rotate it 90 degrees around its X axis.

Syntax

    Return Dword = DX11 CREATE OBJECT QUAD(width, height, [faceNegativeZ], [vertLayout])

Parameters

    width

> Float
> The width, in world space units, of the created quad.

    height

> Float
> The height, in world space units, of the created quad.

    [Optional] faceNegativeZ

> Boolean
> If this parameter is set to true the object will face the negative Z-direction (ie. towards a camera). The standard behaviour for all other objects is to face the positive Z-direction (ie. away from the camera). Defaults to false 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