Trait euc::rasterizer::Rasterizer[][src]

pub trait Rasterizer {
    type Input;
    type Supplement;
    fn draw<P: Pipeline, T: Target<Item = P::Pixel>>(
        pipeline: &P,
        vertices: &[P::Vertex],
        target: &mut T,
        supplement: Self::Supplement
    ); }

Represents a rasterization algorithm.

Associated Types

type Input[src]

The type of input required during rasterization.

For most rasterization algorithms, this is the information that corresponds to a vertex position.

type Supplement[src]

The type of any supplementary data required by the rasterization algorithm.

Examples of supplementary data include depth buffers, stencil buffers, etc.

Loading content...

Required methods

fn draw<P: Pipeline, T: Target<Item = P::Pixel>>(
    pipeline: &P,
    vertices: &[P::Vertex],
    target: &mut T,
    supplement: Self::Supplement
)
[src]

Rasterize the provided vertex data and write the resulting fragment information to the target.

Loading content...

Implementors

impl<'a, D: Target<Item = f32>> Rasterizer for Lines<'a, D>[src]

type Input = [f32; 3]

type Supplement = Option<&'a mut D>

impl<'a, D: Target<Item = f32>, B: BackfaceMode> Rasterizer for Triangles<'a, D, B>[src]

type Input = [f32; 3]

type Supplement = Option<&'a mut D>

Loading content...