Created
January 12, 2018 13:30
-
-
Save cbaggers/107bab61227c4cf4517322e5e28c3100 to your computer and use it in GitHub Desktop.
emit-values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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