(gl3-fill-rect*-vertices) ( loc dim -- vertices )


Vocabulary
ui.render

Inputs
locan object
diman object


Outputs
verticesan object


Definition


:: (gl3-fill-rect*-vertices) ( loc dim -- vertices )
loc first :> x1 loc second :> y1 x1 dim first +
:> x2 y1 dim second + :> y2 {
{ x1 y1 }
{ x2 y1 }
{ x2 y2 }
{ x1 y1 }
{ x2 y2 }
{ x1 y2 }
} make-position-vertices ;