Handbook
Glossary
gl-line ( a b -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Customizing gadget appearance
»
Implementing custom drawing logic
»
OpenGL utility words
Prev:
make-dlist ( type quot -- id )
Next:
gl-fill-rect ( loc dim -- )
Vocabulary
opengl
Inputs
a
a pair of integers
b
a pair of integers
Outputs
None
Word description
Draws a line between two points.
Definition
USING:
opengl.gl
;
IN:
opengl
:
gl-line
( a b -- )
line-vertices
GL_LINES
0 2
glDrawArrays
;