void GL2Decoder::s_glDrawElementsData(void *self, GLenum mode, GLsizei count, GLenum type, void * data, GLuint datalen) { GL2Decoder *ctx = (GL2Decoder *)self; ctx->glDrawElements(mode, count, type, data); }
void GL2Decoder::s_glDrawElementsOffset(void *self, GLenum mode, GLsizei count, GLenum type, GLuint offset) { GL2Decoder *ctx = (GL2Decoder *)self; ctx->glDrawElements(mode, count, type, SafePointerFromUInt(offset)); }
void GL2Decoder::s_glDrawElementsOffset(void *self, GLenum mode, GLsizei count, GLenum type, GLuint offset) { GL2Decoder *ctx = (GL2Decoder *)self; ctx->glDrawElements(mode, count, type, (void *)offset); }