glDrawElements function opengl

void glDrawElements(
  1. int mode,
  2. int count,
  3. int type,
  4. Pointer<Void> indices,
)
GLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )

Implementation

void glDrawElements(int mode, int count, int type, Pointer<Void> indices) {
  final glDrawElementsAsFunction = _glDrawElements
      .cast<
        NativeFunction<
          Void Function(
            Uint32 mode,
            Int32 count,
            Uint32 type,
            Pointer<Void> indices,
          )
        >
      >()
      .asFunction<
        void Function(int mode, int count, int type, Pointer<Void> indices)
      >();
  return glDrawElementsAsFunction(mode, count, type, indices);
}