SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
Shared Object/DLL Management

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.
 

Detailed Description

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:

Typedef Documentation

◆ SharedObjectShared

◆ SharedObjectWeak