Thin wrapper over nuklear for Common Lisp
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
util
.appveyor.yml
.distignore
.gitattributes
.gitignore
.gitmodules
.travis.yml
LICENSE
README.md
bodge-nuklear.asd
bodge_nuklear.h
claw.lisp
example.lisp
nuklear.lisp
packages.lisp

README.md

Build Status Build status

BODGE-NUKLEAR

Wrapper over Nuklear immediate mode GUI library.

Requirements

  • ASDF/Quicklisp
  • x86_64/i686 GNU/Linux, macOS or Windows

Loading

(ql:quickload '(nuklear-blob bodge-nuklear))

Usage

Interface

All wrapped functions can be found in %nk package. On the other hand, nk package contains minimally lispified wrappers and utility functions.

Native Nuklear OpenGL-based vertex buffer-backed renderer is included. See #'make-renderer and #'render-nuklear functions.

To use the renderer you additionally need to load bodge-glad and glad-blob and invoke (glad:init) in the thread with valid OpenGL 3+ context before any call to the renderer to initialize required OpenGL entrypoints.

Example

Example on how to use nuklear and included renderer can be found in example.lisp. See #'compose-nuklear function.

To run it, evaluate in your REPL:

(ql:quickload :bodge-nuklear/example)
(nuklear.example:run)