Skip to content
Thin wrapper over nuklear for Common Lisp
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Use adapted C renderer Feb 23, 2018
spec Bump specs to v3.00.6 Oct 21, 2018
util Add CI spec generation Oct 21, 2018
.appveyor.yml Add CI spec generation Oct 21, 2018
.distignore
.gitattributes Initial commit Dec 19, 2016
.gitignore Add default lispy renderer, example and README Feb 23, 2018
.gitmodules Add default lispy renderer, example and README Feb 23, 2018
.travis.yml Add CI spec generation Oct 21, 2018
LICENSE Initial commit Dec 19, 2016
README.md Add mention about bodge-glad requirement when using provided renderer Aug 30, 2018
bodge-nuklear.asd Migrate to bodge-host Mar 31, 2019
bodge_nuklear.h Fully export symbols marked with NK_API Feb 23, 2018
claw.lisp
example.lisp Migrate to bodge-host Mar 31, 2019
nuklear.lisp Add helper macro for vec2 May 10, 2019
packages.lisp Add helper macro for vec2 May 10, 2019

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)
You can’t perform that action at this time.