Nibl is a minimal graphics framework, composed of a handful of primitive functions, suitable for primitive games and toys. It leverages LibSDL using as few dependencies as possible, with the hope of making it easy to embed into whatever programming environment you fancy.
Really, it's a cleanroom implementation of the rendering aspects of antirez's old load81 project, with some new constraints.
- Trivially usable from other languages
- Performant enough that it's not burdensome to use
- "Retro" enough that it can get away with all the constraints it has
- Only depends on core LibSDL, and libc
- Never exceeds 1,024 lines of "formatted" C code**
- Primitively "feature complete"
**NOTE: This project got picked up again because I said "I bet I can write an easy to embed 'load81' in < 200 lines of code." The initial "complete" version was about 180 lines of poorly formatted C.
- See
nibl.h
for now, and checkoutexample-font.c
for setup.
This was originally antirez's idea, almost 10 years ago. load81 was released under a 2-Clause BSD License, in March 2012.
The font, Tom Thumb, has been used under the terms of the MIT License, and is copyright Robey Pointer, 2010, building on the work of Brian J. Swetland.
Finally, this distribution is released under the 2 Clause BSD License, and any appropriate copyrights not subject to the above, are henceforth copyright 2021, Andrew Gwozdziewycz. See the COPYING file for more information.
Copyright (c) 2021, Andrew Gwozdziewycz. All rights reserved.