glDrawElements function opengl

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

Implementation

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