It looks like you're new here. If you want to get involved, click one of these buttons!
In response to feedback from several of you guys, particularly with regards to trying to wrap the Arnold API, I've added a new type wrapping mechanism: add_opaque_type.
It's covered in the docs at https://github.com/fabric-engine/kludge, but the brief summary is that this wrapping mechanism should be used for types that are opaque pointers whose contents are hidden by the API. It's not (currently) possible to add members and methods to these types, but they can be used in Kludge-generated functions.
Note that the
kludge discover step may not correctly generate a type declaration for this type, and that's OK; you'll need to insert it manually anyway. Once you added the
ext.add_opque_type('TypeName') declaration, the discovered functions that use that type should just "automatically work". At some point I hope to make it automatically use opaque as the default for types that are associated with structures and classes without bodies, but that's not done for the moment.
If you are using the Kludge VM you will need to
git pull the latest in the
~/kludge directory to get this feature, and you may also need to edit
~/.ssh/config to point to the right key to do so.
©Copyright 2017 Fabric Software Inc. All rights reserved. | Privacy