Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. 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.

Scheduled Pinned Locked Moved Uncategorized
30 Posts 20 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

    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.

    Link Preview Image
    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

    favicon

    GitHub (github.com)

    aeva@mastodon.gamedev.placeA This user is from outside of this forum
    aeva@mastodon.gamedev.placeA This user is from outside of this forum
    aeva@mastodon.gamedev.place
    wrote last edited by
    #2

    @demofox mondo cool!!! ๐Ÿ˜ฎ

    demofox@mastodon.gamedev.placeD 1 Reply Last reply
    0
    • aeva@mastodon.gamedev.placeA aeva@mastodon.gamedev.place

      @demofox mondo cool!!! ๐Ÿ˜ฎ

      demofox@mastodon.gamedev.placeD This user is from outside of this forum
      demofox@mastodon.gamedev.placeD This user is from outside of this forum
      demofox@mastodon.gamedev.place
      wrote last edited by
      #3

      @aeva TY Aeva ๐Ÿ™‚

      1 Reply Last reply
      0
      • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

        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.

        Link Preview Image
        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

        favicon

        GitHub (github.com)

        lesley@mastodon.gamedev.placeL This user is from outside of this forum
        lesley@mastodon.gamedev.placeL This user is from outside of this forum
        lesley@mastodon.gamedev.place
        wrote last edited by
        #4

        @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

        J 1 Reply Last reply
        0
        • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

          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.

          Link Preview Image
          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

          favicon

          GitHub (github.com)

          compassing@mastodon.gamedev.placeC This user is from outside of this forum
          compassing@mastodon.gamedev.placeC This user is from outside of this forum
          compassing@mastodon.gamedev.place
          wrote last edited by
          #5

          @demofox my god the naming alone is beyond genius

          demofox@mastodon.gamedev.placeD 1 Reply Last reply
          0
          • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

            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.

            Link Preview Image
            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

            favicon

            GitHub (github.com)

            echoparallax@mathstodon.xyzE This user is from outside of this forum
            echoparallax@mathstodon.xyzE This user is from outside of this forum
            echoparallax@mathstodon.xyz
            wrote last edited by
            #6

            @demofox Nice!

            1 Reply Last reply
            0
            • lesley@mastodon.gamedev.placeL lesley@mastodon.gamedev.place

              @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

              J This user is from outside of this forum
              J This user is from outside of this forum
              jameswidman@mastodon.social
              wrote last edited by
              #7

              @lesley @demofox i thought proton took care of that...?

              demofox@mastodon.gamedev.placeD 1 Reply Last reply
              0
              • J jameswidman@mastodon.social

                @lesley @demofox i thought proton took care of that...?

                demofox@mastodon.gamedev.placeD This user is from outside of this forum
                demofox@mastodon.gamedev.placeD This user is from outside of this forum
                demofox@mastodon.gamedev.place
                wrote last edited by
                #8

                @JamesWidman @lesley someone should implement the api with vulkan on the backend maybe.

                1 Reply Last reply
                0
                • compassing@mastodon.gamedev.placeC compassing@mastodon.gamedev.place

                  @demofox my god the naming alone is beyond genius

                  demofox@mastodon.gamedev.placeD This user is from outside of this forum
                  demofox@mastodon.gamedev.placeD This user is from outside of this forum
                  demofox@mastodon.gamedev.place
                  wrote last edited by
                  #9

                  @compassing im telling my wife, who was less impressed ๐Ÿ˜‚

                  1 Reply Last reply
                  0
                  • R relay@relay.an.exchange shared this topic
                  • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                    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.

                    Link Preview Image
                    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

                    favicon

                    GitHub (github.com)

                    thisarray@mastodon.gamedev.placeT This user is from outside of this forum
                    thisarray@mastodon.gamedev.placeT This user is from outside of this forum
                    thisarray@mastodon.gamedev.place
                    wrote last edited by
                    #10

                    @demofox This is so cool. Well done!

                    1 Reply Last reply
                    0
                    • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                      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.

                      Link Preview Image
                      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

                      favicon

                      GitHub (github.com)

                      ashalah@mastodon.gamedev.placeA This user is from outside of this forum
                      ashalah@mastodon.gamedev.placeA This user is from outside of this forum
                      ashalah@mastodon.gamedev.place
                      wrote last edited by
                      #11

                      @demofox excellent! Very reminiscent of the minifb Rust crate by @daniel_collin

                      1 Reply Last reply
                      0
                      • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                        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.

                        Link Preview Image
                        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

                        favicon

                        GitHub (github.com)

                        ruenahcmohr@infosec.exchangeR This user is from outside of this forum
                        ruenahcmohr@infosec.exchangeR This user is from outside of this forum
                        ruenahcmohr@infosec.exchange
                        wrote last edited by
                        #12

                        @demofox mmm windows, I wonder, what about a linux framebuffer version.. hmmm...

                        demofox@mastodon.gamedev.placeD 1 Reply Last reply
                        0
                        • ruenahcmohr@infosec.exchangeR ruenahcmohr@infosec.exchange

                          @demofox mmm windows, I wonder, what about a linux framebuffer version.. hmmm...

                          demofox@mastodon.gamedev.placeD This user is from outside of this forum
                          demofox@mastodon.gamedev.placeD This user is from outside of this forum
                          demofox@mastodon.gamedev.place
                          wrote last edited by
                          #13

                          @RueNahcMohr @lisyarus is thinking about making a Linux friendly backend!

                          1 Reply Last reply
                          0
                          • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                            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.

                            Link Preview Image
                            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

                            favicon

                            GitHub (github.com)

                            sol_hsa@mastodon.gamedev.placeS This user is from outside of this forum
                            sol_hsa@mastodon.gamedev.placeS This user is from outside of this forum
                            sol_hsa@mastodon.gamedev.place
                            wrote last edited by
                            #14

                            @demofox I find it a bit funny that like myself, everybody else seems to have checked the platform compatibility first ๐Ÿ˜ƒ

                            root42@chaos.socialR 1 Reply Last reply
                            0
                            • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                              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.

                              Link Preview Image
                              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

                              favicon

                              GitHub (github.com)

                              root42@chaos.socialR This user is from outside of this forum
                              root42@chaos.socialR This user is from outside of this forum
                              root42@chaos.social
                              wrote last edited by
                              #15

                              @demofox now we need this with a Vulkan and Metal backend.

                              1 Reply Last reply
                              0
                              • sol_hsa@mastodon.gamedev.placeS sol_hsa@mastodon.gamedev.place

                                @demofox I find it a bit funny that like myself, everybody else seems to have checked the platform compatibility first ๐Ÿ˜ƒ

                                root42@chaos.socialR This user is from outside of this forum
                                root42@chaos.socialR This user is from outside of this forum
                                root42@chaos.social
                                wrote last edited by
                                #16

                                @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@mastodon.gamedev.placeS 1 Reply Last reply
                                0
                                • root42@chaos.socialR root42@chaos.social

                                  @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@mastodon.gamedev.placeS This user is from outside of this forum
                                  sol_hsa@mastodon.gamedev.placeS This user is from outside of this forum
                                  sol_hsa@mastodon.gamedev.place
                                  wrote last edited by
                                  #17

                                  @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.

                                  radgerayden@mstdn.socialR 1 Reply Last reply
                                  0
                                  • kojack@mastodon.gamedev.placeK This user is from outside of this forum
                                    kojack@mastodon.gamedev.placeK This user is from outside of this forum
                                    kojack@mastodon.gamedev.place
                                    wrote last edited by
                                    #18

                                    @bnut @demofox Good old PixelToaster. I used to use its predecessor PTC (Prometheus Truecolor) too. My university final project ray tracer used it for the rendering display.

                                    1 Reply Last reply
                                    0
                                    • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                                      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.

                                      Link Preview Image
                                      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

                                      favicon

                                      GitHub (github.com)

                                      jalict@mastodon.gamedev.placeJ This user is from outside of this forum
                                      jalict@mastodon.gamedev.placeJ This user is from outside of this forum
                                      jalict@mastodon.gamedev.place
                                      wrote last edited by
                                      #19

                                      @demofox Years since I saw Three.js, but so cool to see them grow up to be Thirteen.h ๐Ÿ‘

                                      1 Reply Last reply
                                      0
                                      • demofox@mastodon.gamedev.placeD demofox@mastodon.gamedev.place

                                        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.

                                        Link Preview Image
                                        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

                                        favicon

                                        GitHub (github.com)

                                        lunaticdancer@mastodon.gamedev.placeL This user is from outside of this forum
                                        lunaticdancer@mastodon.gamedev.placeL This user is from outside of this forum
                                        lunaticdancer@mastodon.gamedev.place
                                        wrote last edited by
                                        #20

                                        @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@mastodon.gamedev.placeD 1 Reply Last reply
                                        0
                                        • lunaticdancer@mastodon.gamedev.placeL lunaticdancer@mastodon.gamedev.place

                                          @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@mastodon.gamedev.placeD This user is from outside of this forum
                                          demofox@mastodon.gamedev.placeD This user is from outside of this forum
                                          demofox@mastodon.gamedev.place
                                          wrote last edited by
                                          #21

                                          @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@mastodon.gamedev.placeL 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups