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

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