glewIsSupported function

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

Implementation

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