Last active
February 26, 2017 02:19
-
-
Save wchristian/9320298023e1761dbe56f0fae1e70f91 to your computer and use it in GitHub Desktop.
This file contains 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
XS_EUPXS(XS_OpenGL__Modern_glAccum); /* prototype to pass -Wmissing-prototypes */ | |
XS_EUPXS(XS_OpenGL__Modern_glAccum) | |
{ | |
dVAR; dXSARGS; | |
if (items != 2) | |
croak_xs_usage(cv, "op, value"); | |
{ | |
GLenum op = (int)SvIV(ST(0)) | |
; | |
GLfloat value = (float)SvNV(ST(1)) | |
; | |
#line 6 "./auto-xs.inc" | |
glAccum(op, value); | |
#line 378 "Modern.c" | |
} | |
XSRETURN_EMPTY; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment