glDrawElements function

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 void *indices)

Implementation

void glDrawElements(int mode, int count, int type, Pointer<Void> indices) {
  final glDrawElementsLookupFunction = libGL.lookupFunction<
      Void Function(
          Uint32 mode, Uint32 count, Uint32 type, Pointer<Void> indices),
      void Function(int mode, int count, int type,
          Pointer<Void> indices)>('glDrawElements');
  return glDrawElementsLookupFunction(mode, count, type, indices);
}