Skip to main content

push_textured_quad

Function push_textured_quad 

Source
pub fn push_textured_quad(out: &mut Vec<TexVertex>, p: TexQuadParams)
Expand description

Append six textured vertices (two triangles) for the given TexQuadParams.

The UV rectangle (u0, v0) → (u1, v1) is mapped over the destination quad. tint is multiplied component-wise with the sampled texel in the shader.