Handbook
Glossary
gl3-fill-rect-raw ( loc dim -- )
Vocabulary
ui
.
render
Inputs
loc
an
object
dim
an
object
Outputs
None
Definition
USING:
math
opengl.gl
sequences
;
IN:
ui.render
::
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
;