Skip to content

Instantly share code, notes, and snippets.

@cbaggers
Created January 12, 2018 13:30
Show Gist options
  • Save cbaggers/107bab61227c4cf4517322e5e28c3100 to your computer and use it in GitHub Desktop.
Save cbaggers/107bab61227c4cf4517322e5e28c3100 to your computer and use it in GitHub Desktop.
emit-values
;; like emit except it expects a values for for the data argument
(v-defmacro emit-values ((&key point-size) position data)
`(progn
,@(when point-size `((setf gl-point-size ,point-size)))
(setf gl-position ,position)
,@(when data `((emit-data ,data)))
(emit-vertex)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment