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§
Modules§
- data
- The
datamodule stores structs and functions that are too small to be their own module, such as theColorandGameTimestruct. - input
- The
inputmodule stores theEventenum. The events from the current frame can be accessed by calling theevents()method on aWindowinstance. - shader
- The
shadermodule stores structs and functions used to manage opengl shaders used to draw vertices. It has two primary structs:ShaderandShaderProgram. - shape
- The
shapemodule contains structs and functions for drawing simple 2D shapes to the screen. Each shape instance will create a newVertexBufferwhich 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
texturemodule stores structs for interacting with image files and loading them as opengl textures. - vertex
- The
vertexmodule stores structs and methods to interact withVertexBuffers: a way of interacting with opengl’s VAOs, VBOs and EBOs but in a simpler and safer way. - window
- The
windowmodule contains structs and functions for interacting with aglfw::PWindow.