what is the easiest way to put a pixel in zig?

This page summarizes the projects mentioned and recommended in the original post on /r/Zig

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • raylib

    A simple and easy-to-use library to enjoy videogames programming

  • Raylib is a simple library that was build with educating in mind, so it should be fine as a starting point. There are a few zig bindings and projects for it on Github.

  • LearnOpenGL

    Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com

  • But as u/Trainrider said, if you want to learn graphics programming from scratch, you probably should learn OpenGL at some point.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Chip8-emulator-zig

    A Chip8 emulator written in zig

  • The repo is here https://github.com/PiergiorgioZagaria/Chip8-emulator-zig/blob/main/src/sdl/app.zig.

  • tga.zig

    Discontinued Demonstration of writing a TGA file from Zig.

  • I was faced with this problem when I started writing a ray tracer. After some deliberation, I realized that for my purposes, I didn't need to put pixels directly on the screen, I just needed to put them somewhere. So I wrote a dirt-simple TGA file writing function (70 lines of Zig, no external libraries) and let any image viewing application do the drawing to the screen. https://github.com/ratfactor/tga.zig

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts