oa::FnMesh::createQuad

Create a centered quad (2 triangles, 4 vertices) with top-origin image UVs. UV V=0 is the source image top and world +Y is the quad top. Default is unit quad [-0.5, 0.5] in XY plane at Z=0. For image/video viewing, pass the pixel dimensions (e.g. 1920, 1080).

Function Documentation

oa::MeshData oa::FnMesh::createQuad( oa::F32 inWidth = 1.0f, oa::F32 inHeight = 1.0f )
Create a centered quad (2 triangles, 4 vertices) with top-origin image UVs. UV V=0 is the source image top and world +Y is the quad top. Default is unit quad [-0.5, 0.5] in XY plane at Z=0. For image/video viewing, pass the pixel dimensions (e.g. 1920, 1080).

Parameters

inWidth
oa::F32

Default: 1.0f

inHeight
oa::F32

Default: 1.0f

Returns

oa::MeshData

The declared return value.