glVertexAttribPointer function opengl_glext

void glVertexAttribPointer(
  1. int index,
  2. int size,
  3. int type,
  4. int normalized,
  5. int stride,
  6. Pointer<NativeType> pointer,
)
GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer)

Implementation

void glVertexAttribPointer(
  int index,
  int size,
  int type,
  int normalized,
  int stride,
  Pointer<NativeType> pointer,
) {
  final glVertexAttribPointerAsFunction = _glVertexAttribPointer
      .cast<
        NativeFunction<
          Void Function(
            Uint32 index,
            Int32 size,
            Uint32 type,
            Int32 normalized,
            Uint32 stride,
            Pointer<NativeType> pointer,
          )
        >
      >()
      .asFunction<
        void Function(
          int index,
          int size,
          int type,
          int normalized,
          int stride,
          Pointer<NativeType> pointer,
        )
      >();
  return glVertexAttribPointerAsFunction(
    index,
    size,
    type,
    normalized,
    stride,
    pointer,
  );
}