Let's return to our GoMail application again to try out the nk API. Nuklear is an established toolkit with a lot of functionality so it should be able to build the user interface just as well as previous examples. What we'll see as we build out this user interface is how different an immediate mode toolkit is, in how the code is arranged and how event handling is managed.
We can start by copying the hello world application so we don't have to re-work all of the setup code and life cycle management. As this application is going to contain many more graphical elements, we need to increase the buffer sizes that set using NkPlatformRender(). Replace the original line with the following for this example. In your own applications, this may need to be higher still—if the number is too low, you may notice graphical elements not showing...