Skip to content
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

Upgrade 32-bit user value in nk_handle to 64-bits. #540

Open
hapgood-brian opened this issue Jan 14, 2023 · 0 comments
Open

Upgrade 32-bit user value in nk_handle to 64-bits. #540

hapgood-brian opened this issue Jan 14, 2023 · 0 comments

Comments

@hapgood-brian
Copy link

First of all, you have saved me a TON of time with this library and I LOVE IT so much more than the others (I won't mention ImGUI). I did need to make a little hack to get it working with my handle based asset system, however, in my engine. I basically hash the classname gotten from boost::* called pretty_name() and use that as a key into a key-value store (a thread safe C++ wrapper for std::unsorted_map). So... just wondering if you'd be opposed to introducing a new 64-bit member for nk_handle?

I propose:

typedef union {void *ptr; int id; long long id64;} nk_handle;

It would really help me out because every time I pull my Git submodule for Nuklear onto a new box I have to make that change.

Thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant