Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox Nice!
-
@demofox Cool stuff! I used to use SDL to draw to screen from CPU, but this feels much easier for someone to start.
DX12 means it won't be easy to use on Linux, though
-
@JamesWidman @lesley someone should implement the api with vulkan on the backend maybe.
-
@demofox my god the naming alone is beyond genius
@compassing im telling my wife, who was less impressed

-
R relay@relay.an.exchange shared this topic
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox This is so cool. Well done!
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox excellent! Very reminiscent of the minifb Rust crate by @daniel_collin
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox mmm windows, I wonder, what about a linux framebuffer version.. hmmm...
-
@demofox mmm windows, I wonder, what about a linux framebuffer version.. hmmm...
@RueNahcMohr @lisyarus is thinking about making a Linux friendly backend!
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox I find it a bit funny that like myself, everybody else seems to have checked the platform compatibility first

-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox now we need this with a Vulkan and Metal backend.
-
@demofox I find it a bit funny that like myself, everybody else seems to have checked the platform compatibility first

@sol_hsa you canโt post a Windows only solution to the demoscene without people starting to port it all over the place. Fingers crossed!
-
@sol_hsa you canโt post a Windows only solution to the demoscene without people starting to port it all over the place. Fingers crossed!
@root42 SDL backend ought to be pretty easy to make. Would defeat the purpose though, but at least would make things portable

I love the concept. Keeping it simple will be a struggle, though.
-
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox Years since I saw Three.js, but so cool to see them grow up to be Thirteen.h

-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox oh this is marvelous, great work!
How's the performance overhead? I imagine it's not too bad since this seems to mostly be a fancy data serialization wrapper for DX12 so probably the heaviest part of this is the user iterating over the pixel array (I'm pretty new to graphics programming myself so I might be off-base here).
Also any plans to port the library to C? -
@demofox oh this is marvelous, great work!
How's the performance overhead? I imagine it's not too bad since this seems to mostly be a fancy data serialization wrapper for DX12 so probably the heaviest part of this is the user iterating over the pixel array (I'm pretty new to graphics programming myself so I might be off-base here).
Also any plans to port the library to C?@LunaticDancer its real fast, no overhead in the library.
The pixel values persist across frames, so you could do "dirty rectangles" instead of updating every pixels every frame. If you knew which pixels were updated each frame, you could copy just those regions.
The examples run like pixel shaders as well and iterate overall pixels, but you could blit rectangles instead.
But its real fast. These demos are like 0.3ms per frame on my machine in release. -
@LunaticDancer its real fast, no overhead in the library.
The pixel values persist across frames, so you could do "dirty rectangles" instead of updating every pixels every frame. If you knew which pixels were updated each frame, you could copy just those regions.
The examples run like pixel shaders as well and iterate overall pixels, but you could blit rectangles instead.
But its real fast. These demos are like 0.3ms per frame on my machine in release.@demofox okay yeah, that is one sexy frame budget. I guess it's really on library's user not to squander the performance lol
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox ohhhh love this, was just looking for something similar and found good old tinyptc dead in the water. This looks great!
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox Looks great, love the name.

I was going to say wouldn't this make sense to have as just a single .h _and_ a single .cpp, but I guess a huge use case is just getting up and running very quickly and then you might not have a build system anyway.
-
Hey All, I made a header only C++ library where it's 1 line of code to init, then you can start writing to pixels on the screen.
I call it thirteen.h, as it is inspired by the simplicity of the 13h days.
Examples include a mandelbrot viewer and a playable mine sweeper game.
MIT licensed.
GitHub - Atrix256/Thirteen: Header only minimalist interface to graphics, inspired by the olden days of mode 13h
Header only minimalist interface to graphics, inspired by the olden days of mode 13h - Atrix256/Thirteen
GitHub (github.com)
@demofox It's super cool, but appears to be Windows-only. If anyone knows an alternative that works on Linux let me know.