#2d-graphics #graphics #opengl #gamedev #game-engine #engine #game

realms

A powerful and lightweight graphics library for making Rust games

8 releases (3 stable)

Uses new Rust 2024

new 1.2.2 Mar 18, 2025
1.2.1 Mar 16, 2025
0.2.1 Oct 5, 2024
0.1.3 Oct 5, 2024
0.0.1 May 26, 2024

#794 in Game dev

Download history 6/week @ 2024-12-04 31/week @ 2024-12-11 1/week @ 2025-02-05 5/week @ 2025-02-12 252/week @ 2025-03-12

252 downloads per month

MIT license

66KB
610 lines

Welcome to Realms - the lightweight Rust game library

Realms is a library that allows you to easily make games, animations and any 2D or 3D graphics using Rust.

As of version 1.1.1, Realms now uses OpenGL as a backend. This is a huge API change, and most things have changed since 0.2.1. Get up to date by reading the examples.

Documentation

For extensive documentation on specific fields, structs and functions, see the documentation on docs.rs.

Examples

You can find a list of examples for how to use Realms at github.com/dylanopen/realms/tree/main/examples

Useful resources

Realms is based on OpenGL. For this reason, it is very helpful to have at least some knowledge of the basics of OpenGL; in particular with vertex buffers (VAOs, VBOs and EBOs/IBOs) and shaders in the GLSL programming language.

Below is a list of useful resources for learning OpenGL, the Realms library APIs and game development in general:

Thanks for choosing Realms to build your next great game!

Dependencies

~6MB
~129K SLoC