netVersion function net

int netVersion()

This function gets the version of the dynamically linked SDL_net library.

\returns SDL_net version.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_net 3.0.0.

extern SDL_DECLSPEC int SDLCALL NET_Version(void)

Implementation

int netVersion() {
  final netVersionLookupFunction = _libNet
      .lookupFunction<Int32 Function(), int Function()>('NET_Version');
  return netVersionLookupFunction();
}