Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add callback to API to support loading textures from non-filesystem sources #870

Open
2 tasks done
kblaschke opened this issue Feb 4, 2025 · 0 comments
Open
2 tasks done

Comments

@kblaschke
Copy link
Member

kblaschke commented Feb 4, 2025

Please confirm the following points:

  • This feature request is NOT for the Android apps in the Play Store
  • I have searched the project page to check if a similar request was already made

Application or Project

libprojectM (including the playlist library)

Is Your Enhancement Related to a Problem?

No response

Your Suggested Enhancement

Currently, libprojectM requires textures used in presets to reside on the host OS filesystem. While this works fine in most usage situations, there are cases where the embedding application wants to pass in the textures or where no filesystem is accessible.

To cater for these needs, we should add a simple API callback which, if set, is called and can return the requested image data. If no callback is set or the callback doesn't return the requested data, the projectM library should still fall back to the original behavior and search the texture path (if set).

This will allow a few scenarios like:

  • Storing textures in an application-defined archive (e.g. ZIP)
  • Loading/generating textures on-demand
  • Using projectM in a network-only environment

Alternative Solutions

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant