glCoreBegin - part-cw/lambdanative GitHub Wiki
(glCoreBegin type)
glCoreEnd simulates an OpenGL begin call.
| Parameter | Description |
|---|---|
| type | Geometric Primitive Types, such as GL_LINES |
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))