Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit/AppGameKit Studio Showcase / [Plugin] Nuklear an immediate-mode graphical user interface

Author
Message
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 4th Mar 2021 19:03
I will let the user decide whether to include both tag files or just one.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Mar 2021 23:24
I noticed that there were some errors with the sample code
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 7th Mar 2021 06:46
That's possible, I haven't looked at the sample code lately.
Can you tell me in more detail what these errors are?
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Mar 2021 20:03
One for example in AGK-Projects\extended-demo is
bounds = nkWidget()
main.agc:217:Error: Number of parameters does not match function declaration for "nkwidget", expected 1 parameters

There was another where init(var) no longer requires a parameter
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 8th Mar 2021 07:13
Ah, thanks, I'll update it for the next release.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
kazuki
2
Years of Service
User Offline
Joined: 8th Feb 2019
Location: Japan
Posted: 10th Mar 2021 18:40
utf-8 was supported !
I tried to compile & run "Font Exampe 17" from Nuklear Dokumentation.pdf.

Excellent work.
Thank you very much.
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 10th Mar 2021 19:13
Thank you.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
PartTimeCoder
AGK Tool Maker
6
Years of Service
User Offline
Joined: 9th Mar 2015
Location: Suffolk UK
Posted: 13th Mar 2021 02:37
MadBit, can I ask, how did you link to the AppGameKit OpenGL context to Nk, I am trying to setup a UI system in tier 2 but not sure how to set it up to work with AppGameKit, I can get Nk running standalone but cant find any info on adding to an existing context.
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 13th Mar 2021 05:18
I just use GLEW for that.


That's about it. There are still a few other things that need to be done to link agk with nuklear.
I have only followed the democode of nuklear. (nuklear_sdl_gl3.h)

If you want you can get the tier2 version of my plugin.
I am almost done with it.
The Linux support is still missing.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
george++
AGK Tool Maker
13
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 13th Mar 2021 17:29
Quote: "If you want you can get the tier2 version of my plugin."

It interests me, too
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 13th Mar 2021 18:54
I have sent you a PM.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
PartTimeCoder
AGK Tool Maker
6
Years of Service
User Offline
Joined: 9th Mar 2015
Location: Suffolk UK
Posted: 13th Mar 2021 19:31
Quote: "If you want you can get the tier2 version of my plugin."


Yes please.
DewarInversion
User Offline
Joined: 27th Mar 2021
Location:
Posted: 28th Mar 2021 19:45
Hi folks. I successfully down loaded Nuklear and added it into Studio as a plugin. However, running from within studio, Nuclear plugin code crashes the app and the window closes. I'm running windows 10. One demo which does work is the Skinning.agk demo. This works for normal skins but the TaharezLook.skin is broken. All of the other widgets look good and work, (colour pickers etc)

My initial thoughts are this is a studio IDE thing. Problems occur around code which use the //~ scripting element. Deleting code code or commenting code after this element breaks at run time.

Is there any plan to implement Nuklear support into studio? I understand Classic 2 works fine with Nuclear and want to try that out at some point, but my focus for the moment is in studio tier 1 and after running Skinning and trying out the functions this looks to be a great feature to implement into my code sometime in the near future. The menu widget is esspecailly appealing.
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 29th Mar 2021 05:13
Hello and welcome to the forum,

Nuklear works in Studio only with the OpenGL rederer.
So in the code just put #renderer "Basic" in the first line then it should work.

The thing you mentioned with the commenting out (//~). I can't say anything about that since I don't have Studio to test it.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
DewarInversion
User Offline
Joined: 27th Mar 2021
Location:
Posted: 31st Mar 2021 01:18
Hello, thank you for the reply. Unfortunately this hasn't resolved the issue.

Windows Crash Log states:
Faulting module name: nvoglv64.dll, version: 27.21.14.5671, time stamp: 0x5f75532b




I managed to get extended.agk to work. I have a lot of learning to do with both agk and Nuklear so will try it with Classic and see what I can get.
DewarInversion
User Offline
Joined: 27th Mar 2021
Location:
Posted: 31st Mar 2021 01:52 Edited at: 31st Mar 2021 01:53
Sorry, here's the code

Attachments

Login to view attachments
MadBit
Valued Member
Gold Codemaster
11
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 31st Mar 2021 19:14
Try a driver update.

I can't think of anything else.

P.S.
Please use the code tag of the forum for code snippets. That makes the copy / past easier
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
DewarInversion
User Offline
Joined: 27th Mar 2021
Location:
Posted: 1st Apr 2021 04:10 Edited at: 1st Apr 2021 04:15
this is better, thanks. I have nuk working in tier 1 now and it's a lot of fun.

Login to post a reply

Server time is: 2021-04-11 00:07:39
Your offset time is: 2021-04-11 00:07:39