Click or drag to resize
AB4D logo

GeometryMeshGeneratorCreateViewportQuad(ViewportF, String, Boolean) Method

Creates a SimpleMash that defines a quad (rectangle created with two triangles) from the specified coordinates - (0,0) is upper left corner, (1,1) is lower right corner.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public static SimpleMesh<PositionTexture> CreateViewportQuad(
	ViewportF viewport,
	string name = "ViewportQuad",
	bool isFrontCounterClockwise = true
)

Parameters

viewport  ViewportF
viewport
name  String  (Optional)
name - ViewportQuad by default
isFrontCounterClockwise  Boolean  (Optional)
Boolean that specifies if triangles are oriented so that front size of the quad is clock wise (true by default)

Return Value

SimpleMeshPositionTexture
SimpleMesh
See Also