glTexImage2D function opengl

void glTexImage2D(
  1. int target,
  2. int level,
  3. int internalFormat,
  4. int width,
  5. int height,
  6. int border,
  7. int format,
  8. int type,
  9. Pointer<NativeType> pixels,
)
GLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )

Implementation

void glTexImage2D(
  int target,
  int level,
  int internalFormat,
  int width,
  int height,
  int border,
  int format,
  int type,
  Pointer<NativeType> pixels,
) {
  final glTexImage2DAsFunction = _glTexImage2D
      .cast<
        NativeFunction<
          Void Function(
            Uint32 target,
            Int32 level,
            Int32 internalFormat,
            Uint32 width,
            Uint32 height,
            Int32 border,
            Uint32 format,
            Uint32 type,
            Pointer<NativeType> pixels,
          )
        >
      >()
      .asFunction<
        void Function(
          int target,
          int level,
          int internalFormat,
          int width,
          int height,
          int border,
          int format,
          int type,
          Pointer<NativeType> pixels,
        )
      >();
  return glTexImage2DAsFunction(
    target,
    level,
    internalFormat,
    width,
    height,
    border,
    format,
    type,
    pixels,
  );
}