glewGetExtension function

int glewGetExtension(
  1. String name
)
GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name)

Implementation

int glewGetExtension(String name) {
  final glewGetExtensionLookupFunction = libGLEW.lookupFunction<
      Uint8 Function(Pointer<Utf8> name),
      int Function(Pointer<Utf8> name)>('glewGetExtension');
  final namePointer = name.toNativeUtf8();
  final result = glewGetExtensionLookupFunction(namePointer);
  calloc.free(namePointer);
  return result;
}