Getting Started#
Crystal language bindings for Nuklear
Introduction#
Nuklear-cr provides a lightweight immediate-mode GUI for use with the following backends:
- SDL3-Renderer
- SDL3-OpenGL3
An immediate-mode GUI means that it does not hold the state of its widgets. Instead, you call the functions for the elements you want to draw, and they are drawn every frame.
Example
# Outside the render loop
count = 0
# Inside the render loop
nk.window("demo") do
nk.row
count += 1 if nk.button("Increase")
nk.label "Count: " + count.to_s
end
Installation#
Work in progress
API Reference#
class Nuklear
inherits Reference
#
Test