Crates.io | ivy-presets |
lib.rs | ivy-presets |
version | 0.10.3 |
source | src |
created_at | 2022-01-08 21:41:23.748421 |
updated_at | 2022-01-17 12:53:26.825788 |
description | Contains common presets for quickly setting up an application |
homepage | |
repository | https://github.com/ten3roberts/ivy |
max_upload_size | |
id | 510550 |
size | 14,001 |
Ivy is a modular application and game framework for Rust.
This crate provides an amalgamation and rexport as well as aliasing for the
multiple ivy
crates.
A user guide is provided to quickly familiarize the user with the basic usage of the engine.
The core of the program is an application. [core::App
]. It defines the
update loop, and event handling.
From there, logic is extracted into layers which are run for each iteration. Within a layer, the user is free to do whatever they want, from reading from sockets, rendering using vulkan, or dispatching ECS workloads.
Due to the layered design, several high level concepts can work together and not interfere, aswell as being inserted based on different configurations.
Layers can be thought of as plugin in high level containers of behaviour.
The existance of layer allow importing of behaviour from other crates without concern of implementation details.
The application exposes different ways in which two layers can influence each other.
world
contains the ECS world with all entities and components.resources
is a typed storage accessed by handles. This is useful for
storing textures, models, or singletons that are to be shared between layers
and inside layers with dynamic borrow checking.events
facilitates a broadcasting channel in which events can be sent
and listened to. Each layer can set up a receiver and iterate the sent events
of a specific type. This is best used for low frequency data to avoid busy
checking, like user input, state changes, or alike.See the documentation for [core::Layer
]