Patrick Burris

Software Developer

WebGL Renderer Section 1 - Intro

Overview of the first section

WebGL Renderer Section 0 - Intro

The first post of many detailing how a to build a simple renderer using WebGL2. Learn about WebGL2 and how to abstract it into a 3D renderer.

TypeScript discriminated unions, and trying to mimic Rust enums

Can we re-create Rust enums in TypeScript? We can try! I show how we can use type unions to mimic some of the behavior of Rust enums, and then take a look at the differences between the TS implementation and the Rust implementation.