Skip to main content

Crate embedded_3dgfx

Crate embedded_3dgfx 

Source

Re-exports§

pub use engine::BudgetFallbackOutcome;
pub use engine::DegradationOutcome;
pub use engine::K3dengine;
pub use primitive::DrawPrimitive;
pub use bridge::AsEgPoint;
pub use bridge::AsNalgebraPoint;
pub use bridge::draw_to;
pub use bridge::eg_to_nalgebra;
pub use bridge::nalgebra_to_eg;
pub use bridge::render_drawable_to_buffer;
pub use camera::Camera;
pub use camera::Ray;
pub use completion::CompletionSlot;
pub use completion::WaitTransfer;
pub use completion::WaitTransferFuture;
pub use display_backend::AsyncDmaTransfer;
pub use display_backend::DisplayBackend;
pub use display_backend::DisplayError;
pub use display_backend::DisplayRegion;
pub use display_backend::DmaTransfer;
pub use display_backend::SimulatorBackend;
pub use display_backend::TransferError;
pub use draw::DitherConfig;
pub use draw::FogConfig;
pub use draw::fast_blend_rgb565;
pub use draw::fast_blend_rgba8888;
pub use draw::fast_blend_rgba8888_to_rgb565;
pub use draw::reverse_color_rgb565;
pub use draw::reverse_color_rgba8888;
pub use swapchain::StandardSwapChain;
pub use swapchain::SwapChain;
pub use input::InputState;
pub use renderer::DirtyRegion;
pub use renderer::FrameCtx;
pub use retro::LightLevels;
pub use retro::PaletteMode;
pub use retro::RetroStyle;
pub use retro::ScreenTint;
pub use retro::SkyConfig;
pub use retro::StippleMode;
pub use retro::TextureMapping;
pub use tilebin::TileBinStats;
pub use tilebin::TileConfig;

Modules§

animation
Vertex Animation System
bridge
Interoperability bridges between embedded-3dgfx and embedded-graphics.
camera
command_buffer
completion
ISR-safe DMA completion signaling for async and sync present paths.
config
display_backend
Display backend abstraction for DMA-based rendering
draw
Primitive rasterization, Z-buffering, texture mapping, and blending engine.
engine
error
hardware_profile
input
Platform-agnostic input state.
mesh
primitive
raster
raycast
High-performance 2.5D DDA Raycasting and Mode 7 True 3D Perspective Floorcasting Engine.
renderer
retro
shader
swapchain
Swap chain implementation for double-buffered rendering.
telemetry
tilebin

Structs§

EndianCorrectedBuffer
A backend for FrameBuf which changes the underlying byte order. This can be useful when using the buffer for DMA with peripherals that have a different endianness than the host.
FrameBuf
Constructs a frame buffer in memory. Lets you define the width(X), height (Y) and pixel type your using in your display (RGB, Monochrome etc.)
MeshRayCastHit
Result of a ray cast against triangle geometry.

Enums§

EndianCorrection
Enum indicating how the bytes should be converted in the host’s memory.

Constants§

DEPTH_EPSILON
Z_MAX_VALUE

Traits§

DMACapableFrameBufferBackend
Backends implementing this Trait can be used for DMA.
PixelRead
Readback capability shared with the rest of the ecosystem. Readback capability for a DrawTarget.

Functions§

clear_zbuffer
mesh_ray_cast
Ray-cast against triangle geometry using Möller–Trumbore intersection.
to_zdepth

Type Aliases§

ZDepth