Quadtree Art, Part 1: Setting Up the Canvas

Published on

In this first part we lay the groundwork for the quadtree art project.

We focus on setting up a basic SDL environment, a framebuffer and loading an image using stb_image.h. There is no subdivision logic yet. We are simply preparing to draw.


What You’ll Learn


Why It Matters

Every graphics project needs a solid foundation.

This part ensures we can:


Project Code

You will find the complete source code here: quadtree-art

If everything is set up correctly you should see the input image drawn using the framebuffer.


External Resources


Acknowledgements


Next Up

In part 2 we will build the actual quadtree by subdividing the image region by region.