Crate graphics

Source
Expand description

First-party CPU graphics: reusable mesh storage, visibility and low-poly rasterization.

This is a software fallback and a headless reference renderer, not a GPU backend. Geometry uses right-handed coordinates and counter-clockwise exterior winding.

Structs§

Bounds
CacheStats
Camera
Color
Unpremultiplied RGBA floating-point channels. No implicit gamma conversion.
Fog
Framebuffer
Frustum
InstanceBatch
Mat4
Column-major 4x4 matrix acting on column vectors: translation * rotation * scale.
Mesh
MeshCache
MeshId
Stable CPU mesh handle; generation prevents reuse of a released slot.
ObjError
ObjLimits
Quat
Quaternion stored as vector part (x,y,z) followed by scalar part w.
RenderItem
RenderSettings
RenderStats
SoftwareRenderer
Vec2
Vec3
Vec4
Vertex

Enums§

ClipDepth
ImageRegionError
Invalid input to a checked framebuffer color-region operation.
Look
Authored keeps original colors. Presets preserve alpha and need no extra pass.
MeshError
ObjErrorKind
RenderError

Constants§

MAX_DIMENSION
Resource bounds prevent accidental allocations or unbounded raster loops.
MAX_PIXELS

Functions§

instance_batches
Groups identical mesh handles. This is CPU submission grouping, not a GPU draw call.
vec2
vec3
vec4