Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robloach/nuklear_sdl_12
SDL 1.2 support for Nuklear
https://github.com/robloach/nuklear_sdl_12
nuklear sdl
Last synced: 3 months ago
JSON representation
SDL 1.2 support for Nuklear
- Host: GitHub
- URL: https://github.com/robloach/nuklear_sdl_12
- Owner: RobLoach
- License: unlicense
- Created: 2017-12-06T21:57:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T17:44:10.000Z (11 months ago)
- Last Synced: 2024-03-17T00:15:52.020Z (11 months ago)
- Topics: nuklear, sdl
- Language: C
- Size: 25.4 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nuklear for SDL 1.2
[SDL](https://www.libsdl.org/) 1.2 support for [Nuklear](https://github.com/vurtun/nuklear).
![Nuklear for SDL 1.2 Screenshot](screenshot.png)
## Dependencies
- [SDL 1.2](https://github.com/libsdl-org/SDL-1.2)
- [SDL_gfxPrimitives](https://github.com/ferzkopp/SDL_gfx)## API
``` c
struct nk_context* nk_sdl_init(SDL_Surface *screen_surface);
void nk_sdl_handle_event(SDL_Event *evt);
void nk_sdl_render(struct nk_color clear);
void nk_sdl_shutdown(void);
```## Credit
- [Micha Mettke](https://github.com/vurtun)
- [Rob Loach](https://github.com/robloach)## License
- [Public Domain](LICENSE)