Module dotrix::services[][src]

Services are very important part of Dotrix. Technicaly the service is a standard Rust structure with methods. Logically, services are providers of interfaces to various features.

Developer should explicitly create an instance of a service and add it to a game using the crate::Dotrix application builder:

use dotrix_core::{
    Dotrix,
    services::{ World },
};

fn main() {
    Dotrix::application("My Game")
        .with_service(World::default())
        .run();
}

After adding a service to your game you can access it inside of crate::systems.

Structs

Assets

Assets management service

Camera

Camera management service

Frame

Frame tracking service

Input

Input Service

Ray

Represents ray and provides method for various calculations

Renderer

Service providing an interface to WGPU and WINIT

World

Service to store and manage entities