$ cd ~/projects rustyglide Glide graphics on current GPUs ──────────────────────────────────────────────────── A Rust implementation of the 3dfx Glide API on wgpu, usable as a library or a drop-in Glide wrapper for older games. tags: Rust, Graphics, Game Development ──────────────────────────────────────────────────── ## Run Glide through wgpu I built rustyglide to render the 3dfx Glide API through Vulkan, Metal, DirectX 12, or OpenGL. It recreates the Voodoo graphics pipeline in Rust and WGSL, including texture formats and palettes, blending, fog, depth buffers, mipmaps, and framebuffer access. As a Rust library, it draws into a window owned by the application. Programs can configure resolution scaling, texture filtering, texture memory, and the graphics backend. [Maiko](/projects/maiko) is its first user and uses it to render Redguard natively. rustyglide on GitHub https://github.com/michidk/rustyglide Rust API and usage example https://github.com/michidk/rustyglide#use ──────────────────────────────────────────────────── ## Use a drop-in Glide wrapper The releases include glide2x and glide3x libraries for Windows, Linux, and macOS. The Glide 2.4x wrapper exports all 127 API entry points; the Glide 3.x wrapper exports 94. Windows builds include the decorated names expected by 32-bit games. Compatibility is still focused on Redguard. Glide 3 has smoke-test coverage but has not been tested with a game. The standalone drop-in wrapper renders off screen on Linux and macOS because it does not yet create its own window there. Glide 2.1, edge antialiasing, and 16-bit dithering are not implemented. Download Glide wrappers https://github.com/michidk/rustyglide/releases/latest Design and compatibility notes https://github.com/michidk/rustyglide/blob/main/docs/design.md ──────────────────────────────────────────────────── ## Part of my Redguard work rustyglide grew out of [Maiko](/projects/maiko), which translates the original executable into a native program. It can also be used independently by another application that needs Glide rendering. My other Redguard projects cover different parts of the same work: [Redguard Preservation](/projects/redguard-preservation) documents the game's formats and engine, while [cyrus](/projects/cyrus) rebuilds the game in Rust and Bevy. Maiko website and builder https://michidk.github.io/maiko/ Maiko on GitHub https://github.com/michidk/maiko Redguard Preservation documentation https://michidk.github.io/redguard-preservation/ Redguard Preservation on GitHub https://github.com/michidk/redguard-preservation cyrus website https://michidk.github.io/cyrus/ cyrus on GitHub https://github.com/michidk/cyrus ──────────────────────────────────────────────────── $ ls ~/pages > about curl -L lohr.dev > projects curl -L lohr.dev/projects > blog curl -L lohr.dev/blog > stats curl -L lohr.dev/stats > contact curl -L lohr.dev/contact ──────────────────────────────────────────────────── https://lohr.dev