Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

Widget in 3D space

Open devildevilson opened this issue 1 year ago • 3 comments

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

devildevilson avatar Jul 03 '24 04:07 devildevilson

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

RobLoach avatar Jul 03 '24 16:07 RobLoach

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

devildevilson avatar Jul 09 '24 05:07 devildevilson

nk_set_user_data()? Make sure to define NK_INCLUDE_COMMAND_USERDATA.

RobLoach avatar Jul 09 '24 10:07 RobLoach