libGumball 0.0.1
C23-Based, libGimbal-powered UI Library
Loading...
Searching...
No Matches
gumball_manager.h File Reference

Go to the source code of this file.

Macros

#define GUM_MANAGER_TYPE

Functions

GBL_EXPORT GUM_IResourceGUM_Manager_load (GblStringRef *path) GBL_NOEXCEPT
GBL_EXPORT void GUM_Manager_unload (GUM_IResource *pResource) GBL_NOEXCEPT

Detailed Description

GUM_Manager is a resource manager for libGumball.

It is used to load resources, returning refcounted pointers to them.

Todo
  • Add support for audio and fonts
  • Back resources with a GblArena
Author
2025 Agustín Bellagamba

Macro Definition Documentation

◆ GUM_MANAGER_TYPE

#define GUM_MANAGER_TYPE

Returns the GUM_Manager Type UUID.

Function Documentation

◆ GUM_Manager_load()

GBL_EXPORT GUM_IResource * GUM_Manager_load ( GblStringRef * path)

Loads a resource from the given path, and stores it in the internal hashset. If the resource has already been loaded, returns a reference to the existing resource.

◆ GUM_Manager_unload()

GBL_EXPORT void GUM_Manager_unload ( GUM_IResource * pResource)

Unloads a resource from the manager, removing it from the internal hashset.