 |
MeshFactoryCreateViewportQuad(Vector2, Vector2, Boolean, String) Method |
Creates a TriangleMesh with PositionTextureVertex that defines a quad (rectangle created with two triangles) from the specified viewport,
for example: viewportOffset (0,0) and viewportSize (1,1) define the whole screen.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic static TriangleMesh<PositionTextureVertex> CreateViewportQuad(
Vector2 viewportOffset,
Vector2 viewportSize,
bool isFrontCounterClockwise = true,
string? name = "ViewportQuad"
)
Parameters
- viewportOffset Vector2
- viewport offset
- viewportSize Vector2
- viewport size
- isFrontCounterClockwise Boolean (Optional)
- Boolean that specifies if triangles are oriented so that front size of the quad is clock wise (true by default)
- name String (Optional)
- name - ViewportQuad by default
Return Value
TriangleMeshPositionTextureVertexSimpleMesh
See Also