SDL3pp
A slim C++ wrapper for SDL3
|
System-dependent library loading routines. More...
Classes | |
struct | SDL::SharedObjectRef |
An opaque datatype that represents a loaded shared object. More... | |
struct | SDL::SharedObject |
Handle to an owned sharedObject. More... | |
struct | SDL::SharedObjectUnsafe |
Unsafe Handle to sharedObject. More... | |
Typedefs | |
using | SDL::SharedObjectShared = ResourceShared< SharedObject > |
Handle to a shared sharedObject. | |
using | SDL::SharedObjectWeak = ResourceWeak< SharedObject > |
Weak handle to a shared sharedObject. | |
Functions | |
SharedObjectShared | SDL::SharedObject::share () |
Move this sharedObject into a SharedObjectShared. | |
Shared objects are code that is programmatically loadable at runtime. Windows calls these "DLLs", Linux calls them "shared libraries", etc.
To use them, build such a library, then call SharedObject.Load() on it. Once loaded, you can use SharedObjectRef.LoadFunction() on that object to find the address of its exported symbols. When done with the object, call SharedObject.Unload() to dispose of it.
Some things to keep in mind:
using SDL::SharedObjectShared = typedef ResourceShared<SharedObject> |
using SDL::SharedObjectWeak = typedef ResourceWeak<SharedObject> |