Expand description
Turning 3D geometry into raster images.
This module constitutes the core 3D rendering pipeline of retrofire.
It contains code for clipping, transforming, shading,
texturing, rasterizing, and outputting basic
geometric shapes such as triangles.
Re-exports§
pub use self::batch::Batch;pub use self::cam::Camera;pub use self::clip::Clip;pub use self::ctx::Context;pub use self::shader::FragmentShader;pub use self::shader::VertexShader;pub use self::stats::Stats;pub use self::target::Colorbuf;pub use self::target::Framebuf;pub use self::target::Target;pub use self::tex::TexCoord;pub use self::tex::Texture;pub use self::tex::uv;pub use self::text::Text;
Modules§
- batch
- Builder for setting up geometry for rendering.
- cam
- Cameras and camera transforms.
- clip
- Clipping geometric shapes against planes.
- ctx
- Rendering context and parameters.
- prim
- Render impls for primitives and related items.
- raster
- Translation of vector shapes into discrete pixels in the framebuffer.
- scene
- shader
- Fragment and vertex shaders.
- stats
- Rendering statistics.
- target
- Render targets such as framebuffers.
- tex
- Textures and texture samplers.
- text
Structs§
- Model
- Model space coordinate basis.
- Ndc
- NDC space coordinate basis (normalized device coordinates).
- Screen
- Screen space coordinate basis.
- View
- View (camera) space coordinate basis.
- World
- World space coordinate basis.
Traits§
Functions§
- render
- Renders the given primitives into
target.
Type Aliases§
- Model
ToProj - Mapping from model space to view space.
- Model
ToView - Mapping from model space to view space.
- Model
ToWorld - NdcTo
Screen - Mapping from NDC space to screen space.
- View
ToProj - Mapping from view space to projective space.
- World
ToView