(define (begin-draw number-of-points)
(cond ((= number-of-points 2) (glBegin GL_LINES))
((= number-of-points 3) (glBegin GL_TRIANGLES))
(define (begin-draw number-of-points)
(cond ((= number-of-points 2) (glBegin GL_LINES))
((= number-of-points 3) (glBegin GL_TRIANGLES))
(define-primitive (rectangle width height #:key texture color texture-coord)
(draw-rectangle width height #:texture texture #:color color #:texture-coord texture-coord))
(define-primitive (rectangle width height #:key texture color texture-coord)
(draw-rectangle width height #:texture texture #:color color #:texture-coord texture-coord))
(define-primitive (picture filename #:key (min-filter GL_LINEAR) (mag-filter GL_LINEAR) (zoom 1) (sprite '((0 0) (1 1))))
(draw-texture (load-texture filename #:min-filter min-filter #:mag-filter mag-filter) #:zoom zoom #:sprite sprite))
(define-primitive (picture filename #:key (min-filter GL_LINEAR) (mag-filter GL_LINEAR) (zoom 1) (sprite '((0 0) (1 1))))
(draw-texture (load-texture filename #:min-filter min-filter #:mag-filter mag-filter) #:zoom zoom #:sprite sprite))