-
Notifications
You must be signed in to change notification settings - Fork 21
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
I found a(n easier) way to include addons. #91
Comments
Trying to add ofxImGui soon. |
Here a branch that adds Here are some patches for testing the external: https://github.com/Jonathhhan/ofelia-ofxVolumetrics-example |
Added the ofxImGui develop-branch. Made some changes for VS (only setting the paths): https://github.com/Jonathhhan/ofxImGui/tree/develop-swig Here a screenshot: And thats the code of the example patch:
The main issue is, that some of the objects have a double Most of the Imgui swig stuff is from here: https://github.com/RayquazaGX/swigimgui/blob/master/imgui.i |
@danomatika maybe you know a solution for my issue?
https://github.com/Jonathhhan/ofxOfelia/blob/ofxAddons/scripts/common/ofxOfeliaImGuiBindings.i |
You probably have to do a manual rename on all the symbols in the SWIG interface. Check how I do it in swig-open frameworks to remove the of prefix.enohp ym morf tnes-----------Dan Wilcoxdanomatika.comrobotcowboy.comOn Apr 25, 2024, at 9:54 AM, Jonathan Frank ***@***.***> wrote:
@danomatika maybe you know a solution for my issue?
The main issue is, that some of the objects have a double ImGuiImGui prefix name. For example ImGuiImGuiStyleVar_WindowMinSize, but also ImGuiImVec2 would be better named ImVec2.
ImGuiSetNextWindowSizeConstraints does not seem to have any effect.
https://github.com/Jonathhhan/ofxOfelia/blob/ofxAddons/scripts/common/ofxOfeliaImGuiBindings.i
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@danomatika thanks. I actually forgot to strip the names in that file. Did that already here (after having a look at |
Another SWIG issue with some ofxGui objects like
Is there a way to recognize those objects? Another question: Is it possible to use ofThreads (or threads in general) with SWIG? |
Found a solution for the ImGui naming. Because it is a namespace I only needed it for constants and enums:
|
Here an update: https://github.com/Jonathhhan/ofxOfeliaExtended
Implemented external Addons are:
I tried some other Addons which do not work (out of the box):
A problem with ofxMidi and ofxGui is, that I do not know how to implement additional callbacks (should be possible, because |
At least with
ofxVolumetrics
it works quite well. The shaders from the addon need to be put into theC:\Program Files\Pd\bin\data\ofxVolumetrics\shaders\gl...
folder, it would be much nicer and more convinient if they can be placed in the externals directory. Any idea how to do that?Edit: Tried
ofSetDataPathRoot()
, but not able to locate the relative path of the PD externals folder, only the folder of the patch.The text was updated successfully, but these errors were encountered: