ranguli / stb_image_example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stb_image_example

This repo serves as personal point of reference for:

  1. Working with images in C, specifically with stb_image.h. Using libpng was really overkill, especially comparing how much code was necessary, even with the Simplified API released in 1.6x.
    • In addition is a get_pixel() function I found here that illuminates how the data returned by stbi_load_image() is structured.
  2. Working with single-header libraries in CMake projects. Getting all of the options right was quite tricky. The CMakeLists.txt, though probably scuffed, is worth saving on its own.

About


Languages

Language:C 99.8%Language:CMake 0.2%