1#ifndef SDL3PP_LOADSO_H_
2#define SDL3PP_LOADSO_H_
4#include <SDL3/SDL_loadso.h>
5#include "SDL3pp_stdinc.h"
122 using SharedObjectBase::SharedObjectBase;
221 return SDL_LoadFunction(handle, name);
constexpr RawPointer release() noexcept
Definition SDL3pp_resource.h:57
friend constexpr void swap(ResourceBaseT &lhs, ResourceBaseT &rhs) noexcept
Definition SDL3pp_resource.h:65
constexpr RawPointer get() const noexcept
Definition SDL3pp_resource.h:54
constexpr ResourceBaseT()=default
Default constructor, creates null/invalid resource.
Helpers to use C++ strings parameters.
Definition SDL3pp_strings.h:58
void Unload()
Unload a shared object from memory.
Definition SDL3pp_loadso.h:245
SharedObject LoadObject(StringParam sofile)
Dynamically load a shared object.
Definition SDL3pp_loadso.h:183
void UnloadObject(SharedObjectRaw handle)
Unload a shared object from memory.
Definition SDL3pp_loadso.h:243
SDL_SharedObject * SharedObjectRaw
Alias to raw representation for SharedObject.
Definition SDL3pp_loadso.h:49
FunctionPointer LoadFunction(SharedObjectRef handle, StringParam name)
Look up the address of the named function in a shared object.
Definition SDL3pp_loadso.h:219
ResourceRefT< SharedObjectBase > SharedObjectRef
Reference for SharedObject.
Definition SDL3pp_loadso.h:56
FunctionPointer LoadFunction(StringParam name)
Look up the address of the named function in a shared object.
Definition SDL3pp_loadso.h:224
void(SDLCALL *)() FunctionPointer
A generic function pointer.
Definition SDL3pp_stdinc.h:6254
Main include header for the SDL3pp library.
A non-owning reference wrapper for a given resource.
Definition SDL3pp_resource.h:93
Base class to SharedObject.
Definition SDL3pp_loadso.h:64
constexpr ResourceBaseT()=default
Default constructor, creates null/invalid resource.
An opaque datatype that represents a loaded shared object.
Definition SDL3pp_loadso.h:121
constexpr SharedObject(SharedObjectRaw resource) noexcept
Constructs from raw SharedObject.
Definition SDL3pp_loadso.h:131
~SharedObject()
Destructor.
Definition SDL3pp_loadso.h:159
constexpr SharedObject & operator=(SharedObject &&other) noexcept
Assignment operator.
Definition SDL3pp_loadso.h:162
constexpr SharedObject(SharedObject &&other) noexcept
Move constructor.
Definition SDL3pp_loadso.h:137