-
Notifications
You must be signed in to change notification settings - Fork 101
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
Support for base64 encoded buffers #59
Comments
Yes, please do. It will be easier to comment then pasting code in an issue :-) |
Thank you for the reply. |
Typically you want to create a fork and then create a PR from the fork. Try this. |
Thanks a lot for the help. The commit includes fixes for:
Please let me know if this is ok and if you need more information, do not hesitate to contact me. Best regards, |
Please create a pull request from the branch in your fork. Thanks! |
Hello,
Currently, the buffers are referenced by URI (path to bin file)
I propose adding a function to set the URI as a base64 encoded string. The encoding itself could be done outside of the library.
As a work-around a base64 buffer can be set by using the URI variable with the appropriate length.
Update on GLTFSDK/Source/BufferBuilder.cpp to add setCurrentBufferURI function
280: + bool BufferBuilder::setCurrentBufferURI ( const std::string &data )
281: + {
282: + assert ( m_buffers.size() > 0 );
283: + size_t index = m_buffers.size() - 1;
284: + m_buffers [ index ].uri = data;
285: + m_buffers [ index ].length = data.length();
286: + return true;
287: + }
288: +
Please let me know if I should create a pull request.
Thank you !
The text was updated successfully, but these errors were encountered: