static void printALUTInfo (void) { ALint major, minor; const char *s; major = alutGetMajorVersion (); minor = alutGetMinorVersion (); checkForErrors (); printf ("ALUT version: %d.%d\n", (int) major, (int) minor); s = alutGetMIMETypes (ALUT_LOADER_BUFFER); checkForErrors (); printExtensions ("ALUT buffer loaders", ',', s); s = alutGetMIMETypes (ALUT_LOADER_MEMORY); checkForErrors (); printExtensions ("ALUT memory loaders", ',', s); }
Handle<Value> ALUTGetMIMETypesCallback(const Arguments& args) { //if less that nbr of formal parameters then do nothing if (args.Length() < 1) return v8::Undefined(); //get arguments int arg0 = args[0]->IntegerValue(); //make call alutGetMIMETypes((ALenum)arg0); return v8::Undefined(); }