Hey All, I made a header only C++ library (MIT) where line of code inits, then you can start writing to pixels on the screen.

I call it thirteen.h, inspired by the simplicity of the 13h days.

Examples include a mandelbrot viewer and a playable mine sweeper game.

github.com/Atrix256/Thirteen
8
5
179
I probably know the answer, but I guess this is windows-only?
2
0
2
Yeah, I only have a windows machine unfortunately.
It would be neat if someone made a vulkan version (would that be enough?) The interface is super simple and logical, and it probably will get no more features or updates cause it seems done.
1
0
3
If you don't mind using C, you may like this : github.com/anael-seghezzi/CToy
1
0
1
Where's the ray tracing example?? 😂
1
0
4
It takes no time to use the week-end code with thirteen.h! 🤣
2
0
10
This is truly awesome. Fabulous starting point that’s not as hopelessly complex as most!
0
0
1
I use a lib called minifb alot when i need no fuzz framebuffer.
1
0
1
13h mode 😍
0
0
2
I sent you a pull request for the metal backend.
1
0
4
My god, thank you!
I have my name as author in the header, could you add your name as author of the metal version there?
We should put authors in the readme too, but i can put that there (or feel free to do that if you want to).
A linux version is in the works too.
1
0
2
fenster.h
minifb.h
...
and now thirteen.h
1
0
1
I actually use minifb.h currently (because it can handle resizing and supports the web).

The things I would like to have if I made my own lib that minifb does not do:
- provide an emscripten free web build
(yes, that means a callback for the event loop)
- single header
0
0
1
This is really slick! I have something similar in concept (but not as compact) that I give to my students for certain graphics assignments but I might have to switch to this. Thanks for sharing!
1
0
5
No problem Chris!
I think you've already seen my gigi project but if not, it's this same kind of spirit, but you make a render graph in an editor and run it in a viewer with hot reloading, debugging and profiling features.
Raytracing, compute, work graphs, etc!
github.com/electronicarts/gigi
0
0
6