# Macroquad

Cross\-platform Rust game library with immediate drawing APIs, frame\-oriented async control flow and optional audio\.

ID: Q1011 · Revision: 1059

Type: software · License: MIT OR Apache\-2\.0; dependencies and imported content retain their own terms\.[^manifest][^license] · Status: active

Website: https://macroquad.rs/



Macroquad is a Rust game library inspired by raylib, with immediate drawing functions and a frame\-oriented application loop\. It provides 2D graphics, interface tools and additional modules for cameras and 3D primitives\. Desktop, browser and mobile targets are documented, although platform packaging and selected Cargo features remain part of the application's setup\.[^repo][^api]

## Capabilities and substitutions

### Frame\-oriented Rust loop — supported

An async main function yields through next\_frame; the project uses this to coordinate cross\-platform frame execution\.[^repo]

Use case: Programming small cross\-platform games and interactive graphics in Rust · Platforms: Windows, Linux, macOS, Web, Android, iOS · Region: Version, build and integration requirements apply

### Audio — limited

Audio APIs are provided, but the inspected manifest makes quad\-snd optional through the audio feature; defaults are empty\.[^manifest][^audio]

Use case: Programming small cross\-platform games and interactive graphics in Rust · Platforms: Windows, Linux, macOS, Web, Android, iOS · Region: Version, build and integration requirements apply

### Cross\-platform asset access — limited

Desktop loads use filesystem paths while web loads use HTTP; desktop asset\-root configuration can align packaged paths\.[^files][^paths]

Use case: Programming small cross\-platform games and interactive graphics in Rust · Platforms: Windows, Linux, macOS, Web, Android, iOS · Region: Version, build and integration requirements apply

### Custom materials — supported

Materials support shaders and uniforms, with load\-time parameter configuration\.[^material]

Use case: Programming small cross\-platform games and interactive graphics in Rust · Platforms: Windows, Linux, macOS, Web, Android, iOS · Region: Version, build and integration requirements apply

### Mobile delivery — limited

Android and iOS are documented targets; the iOS guide distinguishes bundles/resources from signing and provisioning for a device\.[^repo][^ios]

Use case: Programming small cross\-platform games and interactive graphics in Rust · Platforms: Windows, Linux, macOS, Web, Android, iOS · Region: Version, build and integration requirements apply

### [Substitute for raylib](/raylib) — limited

Assessment: a Rust\-oriented alternative for small code\-driven graphics and game projects inspired by raylib's approach\. APIs and frame organization differ, and audio features, asset paths and platform packaging must be adapted rather than assumed compatible\.[^repo][^manifest][^paths][^raylib]

Use case: Programming small cross\-platform games and interactive graphics in Rust · Platforms: Windows, Linux, macOS, Web, Android, iOS · Region: Version, build and integration requirements apply

## References

[^repo]: [Macroquad repository](<https://github.com/not-fl3/macroquad>) — raylib inspiration, platform builds, Linux dependencies and async/await design (vendor; retrieved 2026-10-07T20:40:10Z)

[^api]: [Macroquad 0\.4\.16 API](<https://docs.rs/macroquad/latest/macroquad/>) — Modules, immediate UI, cameras and experimental namespace warning (vendor; retrieved 2026-10-07T20:40:35Z)

[^manifest]: [Macroquad manifest](<https://github.com/not-fl3/macroquad/blob/master/Cargo.toml>) — MIT OR Apache\-2\.0, empty default features and audio/quad\-snd dependency (vendor; retrieved 2026-10-07T20:40:44Z)

[^license]: [Macroquad MIT option](<https://github.com/not-fl3/macroquad/blob/master/LICENSE-MIT>) — Commercial/modification permissions and notice retention (vendor; retrieved 2026-10-07T20:40:44Z)

[^files]: [Macroquad file loading](<https://docs.rs/macroquad/latest/macroquad/file/fn.load_file.html>) — Async function; PC filesystem versus web HTTP (vendor; retrieved 2026-10-07T20:40:55Z)

[^paths]: [Macroquad desktop asset roots](<https://docs.rs/macroquad/latest/macroquad/file/fn.set_pc_assets_folder.html>) — Desktop current\-directory paths versus packaged Android asset root (vendor; retrieved 2026-10-07T20:40:55Z)

[^material]: [Macroquad material API](<https://docs.rs/macroquad/latest/macroquad/material/index.html>) — Material load\-time parameters and subsequent rendering selection (vendor; retrieved 2026-10-07T20:40:55Z)

[^ios]: [Macroquad iOS guide](<https://macroquad.rs/articles/ios/>) — Application bundle, resources and real\-device signing/provisioning distinction (vendor; retrieved 2026-10-07T20:40:35Z)

[^audio]: [Macroquad audio API](<https://docs.rs/macroquad/latest/macroquad/audio/index.html>) — Load/play/stop and volume APIs (vendor; retrieved 2026-10-07T20:40:44Z)

[^raylib]: [raylib overview](<https://www.raylib.com/>) — Code\-driven C game library and graphics/audio modules (vendor; retrieved 2026-10-07T20:40:44Z)

Source revision: https://substitutefor.net/entities/Q1011?revision=1059
