gl3-fill-rect-raw ( loc dim -- )


Vocabulary
ui.render

Inputs
locan object
diman object


Outputs
None

Definition


:: gl3-fill-rect-raw ( loc dim -- )
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 upload-vertices
GL_TRIANGLES 0 6 glDrawArrays ;