Comments (4)
It is possible to set the load/save file data callback...
RLAPI void SetLoadFileDataCallback(LoadFileDataCallback callback); // Set custom file binary data loader
RLAPI void SetSaveFileDataCallback(SaveFileDataCallback callback); // Set custom file binary data saver
Used them successfully in raylib-physfs. Would like to see some of that capability expanded to functions that you mentioned. A workaround for it in the mean time would be to copy the associated methods and modify as needed.
from raylib.
It is possible to set the load/save file data callback...
RLAPI void SetLoadFileDataCallback(LoadFileDataCallback callback); // Set custom file binary data loader RLAPI void SetSaveFileDataCallback(SaveFileDataCallback callback); // Set custom file binary data saverUsed them successfully in raylib-physfs. Would like to see some of that capability expanded to functions that you mentioned. A workaround for it in the mean time would be to copy the associated methods and modify as needed.
Oh, I hadn't spotted those functions, thanks for pointing them out! Would I be right in assuming that all functions in raylib that load files from disk can be intercepted with custom functionality via those callbacks? If so, that seems like it would solve the issue completely.
from raylib.
LoadModelAnimations()
uses LoadFileData()
, which calls the LoadFileDataCallback
that you have set, yes.
from raylib.
As comented, alternatives already exist to cover that use case.
from raylib.
Related Issues (20)
- [rcore_desktop] Can't get size of the monitor before creating a window HOT 2
- [core] rlImGUI needs a way to consume input HOT 4
- [rcore] Calls to GetRandomValue(min, max) will always return min, if not call to InitWindow() HOT 1
- [core] PLATFORM_DRM rotate screen/window HOT 10
- Maybe possibly Invalid Default Texture? HOT 5
- requesting 5.0.1 version to fix incorrect PROJECT_VERSION in 5.0 HOT 2
- [rtextures] DDS / DXT1, DXT3 and DXT5: unit 0 GLD_TEXTURE_INDEX_2D is unloadable HOT 7
- [rcore] Replay record finish can't stop move (always keydown) HOT 2
- [rcore] The content can't be rendered correctly in fullscreen mode. HOT 3
- [rcore] `ToggleFullscreen()` not working as expected with HighDPI mode enabled HOT 2
- [rshape] Line drawing functions are no longer pixel-perfect HOT 1
- [rcore] Render issue when window is partially move outside of the monitor HOT 2
- [rcore] uncapped framerate not working properly with SDL platform HOT 3
- [rcore] Get keys that are pressed again, like chars HOT 1
- [rtextures.c] ColorToInt(RED) is UB HOT 12
- [raudio] WaveCrop() is broken HOT 1
- [rmodels] Read uninitialized values in `GenMeshTangents()` HOT 1
- [rmodels] "matModel" shader uniform is not multiplied with the push/pop matrix stack HOT 3
- [raylib-cs] WARNING: GLFW: Failed to find selected monitor HOT 1
- [rcore] Inconsistency in the API between `GetGamepadButtonPressed` and `GetKeyPressed` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raylib.