The raylib requires licenses to run. These functions take care of licenses:
int mi_raylib_license_get( int nthreads)
This function requests and checks out licenses for nthreads threads. It returns the number of threads that are allowed to run, which may be less than or at most equal to nthreads. If zero is returned, the library cannot run. The returned number must later be passed to mi_raylib_init. If mi_raylib_init is called with a number of threads other than the number returned by mi_raylib_license_get, the library will not work correctly!
This call applies only to the ``master'' mental ray. If there are server hosts that participate in rendering, they will obtain their own licenses.
void mi_raylib_license_release(void)
This function releases all licenses previously checked out with mi_raylib_license_get. It should be called just before mi_raylib_exit to make the licenses available to other programs.
Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.