Crate realms

Source
Expand description

Welcome to Realms!
Realms is a lightweight, simple and powerful library which provides graphics and game functionality.

Homepage: https://github.com/dylanopen/realms
Documentation: https://docs.rs/realms

Re-exports§

pub extern crate gl;
pub extern crate glfw;

Modules§

data
The data module stores structs and functions that are too small to be their own module, such as the Color and GameTime struct.
input
The input module stores the Event enum. The events from the current frame can be accessed by calling the events() method on a Window instance.
shader
The shader module stores structs and functions used to manage opengl shaders used to draw vertices. It has two primary structs: Shader and ShaderProgram.
shape
The shape module contains structs and functions for drawing simple 2D shapes to the screen. Each shape instance will create a new VertexBuffer which need to individually be sent to the GPU. For that reason, this module should only be used for prototyping and applications where performance isn’t important.
texture
The texture module stores structs for interacting with image files and loading them as opengl textures.
vertex
The vertex module stores structs and methods to interact with VertexBuffers: a way of interacting with opengl’s VAOs, VBOs and EBOs but in a simpler and safer way.
window
The window module contains structs and functions for interacting with a glfw::PWindow.