glCreateShader function

int glCreateShader(
  1. int type
)
define glCreateShader GLEW_GET_FUN(__glewCreateShader)
GLEW_FUN_EXPORT PFNGLCREATESHADERPROC __glewCreateShader
typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type)

Implementation

int glCreateShader(int type) {
  final glCreateShaderAsFunction = _glCreateShader
      .cast<NativeFunction<Uint32 Function(Uint32 type)>>()
      .asFunction<int Function(int type)>();
  return glCreateShaderAsFunction(type);
}