gl-fill-rect ( loc dim -- ) (original) (raw)
gl-fill-rect ( loc dim -- )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic » OpenGL utility words
Prev: | gl-line ( a b -- ) |
---|---|
Next: | gl-rect ( loc dim -- ) |
Vocabulary
opengl
Inputs
loc | a pair of integers |
---|---|
dim | a pair of integers |
Outputs
None
Word description
Draws a filled rectangle with the top-left corner at the origin and the given dimensions.
Definition
: gl-fill-rect ( loc dim -- )
fill-rect-vertices (gl-fill-rect) ;