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

Widget in 3D space #657

Open
devildevilson opened this issue Jul 3, 2024 · 3 comments
Open

Widget in 3D space #657

devildevilson opened this issue Jul 3, 2024 · 3 comments

Comments

@devildevilson
Copy link

devildevilson commented Jul 3, 2024

Nuklear is wonderful gui. What can makes it more wonderful? The possibility to use it as info billboard on top of a unit. Is there a way? For example

6Ak1A
(not my screenshot, found in the internet)

Is there a way to render text on top of theese guys using Nuklear? I beleve it is needed to pass some 3d matrix to every nuklear window and catch it in nk_convert... Something like that. How can I deal with it?
PS: if its already answered, Im sorry - google gives nothing

@RobLoach
Copy link
Contributor

RobLoach commented Jul 3, 2024

Yes, you would likely apply a transform before rendering the contexts. Depends on which renderer you're using though.

@devildevilson
Copy link
Author

Yep, Ill write my own renderer like no problem. I need to pass some additional info into the nuklear window. How to do it? I dont see how to pass userdata around window in nuklear

@RobLoach
Copy link
Contributor

RobLoach commented Jul 9, 2024

nk_set_user_data()? Make sure to define NK_INCLUDE_COMMAND_USERDATA.

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

2 participants