cranpose-render-common 0.1.8

Common rendering contracts for Cranpose
docs.rs failed to build cranpose-render-common-0.1.8
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: cranpose-render-common-0.1.9

Cranpose Render Common

The common abstraction layer for Cranpose rendering backends.

When to Use

This crate defines the Renderer trait and the RenderOp enum. You should use this crate only if you are implementing a custom rendering backend (e.g., a pure terminal renderer or a specific game engine integration).

Key Concepts

  • RenderOp: Represents a high-level drawing command (e.g., DrawRect, DrawText, PushTransform).
  • RenderScene: A unified list of operations generated by the UI layout phase.
  • Renderer Trait: The interface that a backend must implement to consume a RenderScene and produce pixels on a surface.

Architecture

This crate decouples the UI framework from specific graphics APIs, allowing cranpose-ui to be renderer-agnostic.