|
GeometryMeshGeneratorCreateViewportQuad(Single, Single, Single, Single, String, Boolean) Method |
Creates a SimpleMash that defines a quad (rectangle created with two triangles) from the specified coordinates - x1 and y1 defines the bottom left position (-1, -1 for full screen); x2 and y2 define the upper right position (1, 1 for full screen).
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax public static SimpleMesh<PositionTexture> CreateViewportQuad(
float x1,
float y1,
float x2,
float y2,
string name = "ViewportQuad",
bool isFrontCounterClockwise = true
)
Parameters
- x1 Single
- x1
- y1 Single
- y1 (-1 is bottom, 1 is top)
- x2 Single
- x2
- y2 Single
- y2
- 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
SimpleMeshPositionTextureSimpleMesh
See Also