Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

glCoreEnd simulates an OpenGL end call.

Note: This should not be called by a user directly

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))
Clone this wiki locally