glLabelObjectExt function opengl_glext

void glLabelObjectExt(
  1. int type,
  2. int object,
  3. int length,
  4. String label,
)
GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label)

Implementation

void glLabelObjectExt(int type, int object, int length, String label) {
  final glLabelObjectExtAsFunction = _glLabelObjectExt
      .cast<
        NativeFunction<
          Void Function(
            Uint32 type,
            Uint32 object,
            Uint32 length,
            Pointer<Utf8> label,
          )
        >
      >()
      .asFunction<
        void Function(int type, int object, int length, Pointer<Utf8> label)
      >();
  final labelPointer = label.toNativeUtf8();
  final result = glLabelObjectExtAsFunction(type, object, length, labelPointer);
  calloc.free(labelPointer);
  return result;
}