glCoreVertex2f - part-cw/lambdanative GitHub Wiki
(glCoreVertex2f x0 y0 . xtra)
glCoreVertex2f simulate OpenGL vertex
call.
Parameter | Description |
---|---|
x0 | x coordinate of Vertex |
y0 | y coordinate of Vertex |
xtra | Optional: tx and ty |
Example
Example 1: glgui:draw-line, a very inefficient way of drawing a line
(define (glgui:draw-line x1 y1 x2 y2 color)
(glCoreColor color)
(glCoreBegin GL_LINES)
(glCoreVertex2f (flo x1) (flo y1))
(glCoreVertex2f (flo x2) (flo y2))
(glCoreEnd))