glTexImage2D function

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<Void> pixels,
)
GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)

Implementation

void glTexImage2D(int target, int level, int internalformat, int width,
    int height, int border, int format, int type, Pointer<Void> pixels) {
  final glTexImage2DLookupFunction = libGL.lookupFunction<
      Void Function(
          Uint32 target,
          Int32 level,
          Int32 internalformat,
          Uint32 width,
          Uint32 height,
          Int32 border,
          Uint32 format,
          Uint32 type,
          Pointer<Void> pixels),
      void Function(
          int target,
          int level,
          int internalformat,
          int width,
          int height,
          int border,
          int format,
          int type,
          Pointer<Void> pixels)>('glTexImage2D');
  return glTexImage2DLookupFunction(target, level, internalformat, width,
      height, border, format, type, pixels);
}