Skip to main content

Crate rayengine_core

Crate rayengine_core 

Source
Expand description

Display-independent primitives shared by 2D and 3D rayengine games.

This crate deliberately has no raylib dependency. Simulations and tests can run without a C compiler, window, display server, or graphics context.

Re-exports§

pub use glam;

Modules§

camera
Corresponding cameras with a stable visible height or vertical field of view.
collision
Axis-aligned queries and swept character movement, without rigid-body physics.
events
Typed game events with explicit tick lifetime and reused storage.
first_person
Optional first-person movement over Body3D. Games own worlds, spawning, checkpoints, menus, interaction and input-edge consumption.
input
Action input whose edges survive render frames and are consumed per tick.
jobs
Optional bounded CPU jobs. Native GPU resources remain on their owning thread.
manifest
Versioned, optional project descriptions shared by tools and the runtime.
mesh
CPU triangle data for procedural geometry, independent of a graphics context.
prelude
Common imports for display-independent game code.
quality
CPU-only render quality validation and allocation planning.
save
Versioned, checksummed containers for game-defined payloads.
scene
Dense entities/components with an optional, validated transform hierarchy.
spatial
Display-independent selection, proximity, and conservative camera visibility.
sprite
Validated sprite regions and CPU-only animation with explicit simulation time.
time
Fixed simulation timing with bounded catch-up and render interpolation.
transform
Local and global transforms for typed 2D and 3D entities.
ui
Small anchored UI primitives shared by both dimensions.
viewport
One viewport contract for cameras, layout, letterboxing and pointer mapping.

Structs§

Entity
Lightweight unique ID, or handle, of an entity
World
An unordered collection of entities, each having any number of distinctly typed components

Traits§

Bundle
A statically typed collection of components