Add xcb dynamic loading support - #99
Conversation
|
Error management is not done, I did not find a way to convey an clean error if the lib or a symbol is not available. There is an error code stuff but I'd need to be able to abort right during the manager creation. |
|
Looks good to me but I think @dacap wanted to have a CMake variable to switch between link and dynamic load mode. |
Right, completely forgot about that. |
|
@dacap in the meantime I have added a simple exception system |
d3092d9 to
b0a7ba0
Compare
|
I'll take a look at this later, but I don't want to include a third party license with clip (as it will obligate to include that license to everybody who is using clip). I'd implement the loading of xcb functions if it's required (the code is not as complex to be copied from other impl). |
Ha you mean the fact that I copied from VTK ? Let me know. |
I agree that my contributions are licensed under the MIT License.
You can find a copy of this license at https://opensource.org/licenses/MIT
This adds supports for loading xcb dynamically instead of linking against it, by providing all needed symbols as function pointers.
TODO: Error management
Fix: #98
Fix: f3d-app/f3d#3326