Open tcfunk opened 7 years ago
nuklear is now instanced so you can have multiple UI states. I think the readme just hasn't been updated yet.
local nk = require "nuklear"
local ui = nk.newUI()
So weirdly it seems the library works as expected on my older macbook pro, using the old nk.init()
method. (I have the v1.2 branch checked out).
However it doesn't work on my newer macbook pro using the same nuklear.so
It also doesn't work if I build the nuklear.so on the newer laptop. Not sure what's going on 🙁
This is indeed very weird. Does this still happen with the latest release? Unfortunately I'm unable to test the code on Mac OS.
Here's a datapoint: with the Love from Cask, on 14.14 (Mojave) with an older MacBook Air, and using the source from HEAD, the example in the Readme doesn't crash and seems to work as intended.
Hi I was wondering if you knew any special steps I might need to take to build this library correctly for Mac? These were the steps I took:
nk = require 'nuklear'
However when I try to run
nk.init()
I get the following:I tried checking what keys existed in the
nk
table, and printing those out gave me:Calling that function with
nk[0]()
produced:Am I missing something obvious? Any help is appreciated :) Thanks for the great library.