GitHub - silvematt/TomentPainter: A super simple Software Rendering Painting Tool written in C and SDL2 over a weekend. (original) (raw)

Toment Painter

alt text

A super simple Software Rendering Painting Tool written in C and SDL2.

Description

I've written this painter over a weekend to get started with Computer Graphics :)

Features:

There were so many features I would have liked to add, but for the time I gave myself on it I'm pretty ok with the result. I've also deliberaterly choosen to not include any other library other than SDL.

I'm not sure it is the best way to do it, but the way it works is at the start of the program I grab the whole Window Surface and store it into an SDL_Surface, I also have a pointer to the pixels of the surface, so that I can do stuff on them, and then I SDL_UpdateWindowSurface at the end of every tick.

It does what I asked lol!