Skip to main content

oa/
render.rs

1//! Rendering, texture, mesh, material, scene, camera, and presentation
2//! contracts.
3//!
4//! This namespace intentionally exposes no placeholder renderer or presenter.
5//! Stateful rendering and presentation types are admitted only with explicit
6//! runtime ownership, synchronization, failure, and lifecycle behavior.
7
8mod camera;
9mod material;
10mod mesh;
11mod renderer;
12mod scene;
13mod texture;
14
15pub use camera::{Camera, CameraProjection};
16pub use material::{
17	AlphaMode, FlatColorMaterial, Material, MaterialId, SurfaceMaterial, TextureHandle, UnlitMaterial,
18};
19pub use mesh::{
20	Aabb, compute_bounds, create_cube, create_fullscreen_quad, create_quad, flip_uvs_y, scale,
21	transform, translate,
22};
23pub use renderer::{CanvasGridFrame, RenderFrame, Renderer, RendererConfig};
24pub use scene::{
25	MeshData, MeshVertex, Scene, SceneDrawPacket, SceneMaterial, SceneMesh, SceneMeshId, SceneNode,
26	SceneNodeId, compile_scene, compile_scene_packets, validate_scene,
27};
28pub(crate) use texture::texture_from_matrix;
29pub use texture::{
30	Texture, blit, clear, save_texture_file, texture_from_file, texture_from_file_on,
31	texture_from_image, texture_from_rgba8, texture_from_rgba8_on,
32};