This library is no longer maintained, nuklear now provides support for SFML backend upstream:
- https://github.com/Immediate-Mode-UI/Nuklear/tree/master/demo/sfml_opengl3
- https://github.com/Immediate-Mode-UI/Nuklear/tree/master/demo/sfml_opengl2
This is a simple header that provides SFML backend implementation for the nuklear library.
It requires C++14 to compile.
Drop nuklear.h and nuklear_sfml.hpp into your project and see main.cpp for integration example.
nk_sfml_image(const sf::Texture &)
that convertssf::Texture
tonk_image
type.nk_sfml_image(const sf::Sprite &)
that convertssf::Sprite
tonk_image
type.
Clipboard will not work because SFML does not provide functionality to interface with the system clipboard. You can still get it to work if you write clipboard functionality for your platform and assign function pointers to sfml.ctx.clip.copy
and sfml.ctx.clip.paste
.
Public Domain