Open AlexiaChen opened 7 years ago
The actual demos are in the subdirectories of the demo directory :) There are 10 demos in a dir each in the demo dir.
You are not setting up your graphics and you are not looping. But check out the demo code to see how it's done.
@AlexiaChen like @jacmoe already said so far you only have the platform independent part but you are missing the platform depended part. Basically I would suggest first giving the platform demo of choice inside the /demo
folder a look. Each demo optionally includes the calculator and provides a basic overview on how to bind nuklear to a platform. If you get one of my demos to run you basically just have to add your specific UI code.
@vurtun Thanks, I kooked through the demo directory, and not checked GUI sub directory,sorry. Let me see How it works.
My Code as follows, thats just use official demo calculator:
I found the library need a font to load by function nk_init_default, But How Can I use struct nk_user_font to load a specific font in folder extra_font? there are no detailed documentations. and run-welled demo.
Edit(vurtun): fixed code formatting