Skip to content

Instantly share code, notes, and snippets.

@wchristian
Last active February 26, 2017 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wchristian/9320298023e1761dbe56f0fae1e70f91 to your computer and use it in GitHub Desktop.
Save wchristian/9320298023e1761dbe56f0fae1e70f91 to your computer and use it in GitHub Desktop.
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