Giter Site home page Giter Site logo

cimnodes's Introduction

cimnodes

This is a c-api wrapper for imnodes (https://github.com/Nelarius/imnodes) which is a node editor for Dear ImGui (https://github.com/ocornut/imgui)

imnodes is a submodule of this repo. To do generation again in case imnodes is changed, you should update imnodes, make sure that cimgui repository is a sibling folder to this repository folder and execute generator/generator.bat(.sh)

Compilation will need IMNODES_NAMESPACE to be defined as imnodes. With cmake this is done as add_definitions(-DIMNODES_NAMESPACE=imnodes)

cimnodes's People

Contributors

sonoro1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cimnodes's Issues

Missing License

It looks like this repository, along with cimguizmo_quat and cimnodes_r, is missing any kind of license declaration. They're probably supposed to have an MIT license file like the other repositories?

And thank you for this work! It's making working with imgui from C and creating bindings for other languages a breeze.

Help generating dlls

I'm trying to generate cimnodes.dll file to use with another project, but I'm having some trouble doing it.

I saw the makefile in cimgui, and tried making something similar for cimnodes (and cimguizmo, for that matter), but I can't get it to work.
I don't have much experience wit c/c++, so I'm not sure on how to properly solve imgui dependencies.. Should I just include imgui.h and imgui_internals.h in the root folder?

Sorry if this seems simple, but I'm a bit confused as to how to proceed

namespacing issues?

I'm having the following issues when trying to wrap this api https://github.com/benmkw/imnodes-rs#todo where I'm not yet sure if its my fault (may very well be). Could you tell me if it works for you so that I can be sure its an issue on my side? :D

ug/build/imnodes-sys-655e2915e490d9bd/out/third-party/cimnodes/cimnodes.o" "-c" "third-party/cimnodes/cimnodes.cpp"
  cargo:warning=third-party/cimnodes/cimnodes.cpp:44:12: error: cannot initialize return object of type 'EditorContext *' with an rvalue of type 'imnodes::EditorContext *'
  cargo:warning=    return imnodes::EditorContextCreate();
  cargo:warning=           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=third-party/cimnodes/cimnodes.cpp:48:39: error: cannot initialize a parameter of type 'imnodes::EditorContext *' with an lvalue of type 'EditorContext *'
  cargo:warning=    return imnodes::EditorContextFree(noname1);
  cargo:warning=                                      ^~~~~~~
  cargo:warning=third-party/cimnodes/./imnodes/imnodes.h:148:38: note: passing argument to parameter here
  cargo:warning=void EditorContextFree(EditorContext*);
  cargo:warning=                                     ^
  cargo:warning=third-party/cimnodes/cimnodes.cpp:52:38: error: cannot initialize a parameter of type 'imnodes::EditorContext *' with an lvalue of type 'EditorContext *'

// etc ...

LuaJIT bindings

Great to see that there are now are c-bindings for this implementation, thank you! Are you planning to create LuaJIT ffi binding for this, by any chance?

namespace: wrong name?

Hi
I'm trying to build shared library with cmake and getting this:

# ...
/home/me/git/cimgui-go/cimgui/cimnodes.cpp: In function ‘void imnodes_ClearLinkSelection_Int(int)’:
/home/mszeptuch/git/cimgui-go/cimgui/cimnodes.cpp:292:12: error: ‘imnodes’ has not been declared
  292 |     return imnodes::ClearLinkSelection(link_id);
      |            ^~~~~~~
# ...

After sed -e s/imnodes/ImNodes/g cimnodes.cpp everything works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.