SDL 2.0
|
Go to the source code of this file.
Functions | |
void * | SDL_LoadObject (const char *sofile) |
void * | SDL_LoadFunction (void *handle, const char *name) |
void | SDL_UnloadObject (void *handle) |
System dependent library loading routines
Some things to keep in mind:
Definition in file SDL_loadso.h.
|
extern |
Look up the address of the named function in a shared object.
This function pointer is no longer valid after calling SDL_UnloadObject().
This function can only look up C function names. Other languages may have name mangling and intrinsic language support that varies from compiler to compiler.
Make sure you declare your function pointers with the same calling convention as the actual library function. Your code will crash mysteriously if you do not do this.
If the requested function doesn't exist, NULL is returned.
handle | a valid shared object handle returned by SDL_LoadObject() |
name | the name of the function to look up |
|
extern |
Dynamically load a shared object.
sofile | a system-dependent name of the object file |
|
extern |
Unload a shared object from memory.
handle | a valid shared object handle returned by SDL_LoadObject() |