Handbook
Glossary
gl-rect ( loc dim -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Customizing gadget appearance
»
Implementing custom drawing logic
»
OpenGL utility words
Prev:
gl-fill-rect ( loc dim -- )
Vocabulary
opengl
Inputs
loc
a pair of integers
dim
a pair of integers
Outputs
None
Word description
Draws the outline of a rectangle with the top-left corner at the origin and the given dimensions.
Definition
USING:
combinators
kernel
namespaces
;
IN:
opengl
:
gl-rect
( loc dim -- )
gl-rect-hook
get-global
[
( loc dim -- )
call-effect
]
[
gl-rect-legacy
]
if*
;