Trait euc::rasterizer::Rasterizer [−][src]
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.
Required methods
fn draw<P: Pipeline, T: Target<Item = P::Pixel>>(
pipeline: &P,
vertices: &[P::Vertex],
target: &mut T,
supplement: Self::Supplement
)
[src]
pipeline: &P,
vertices: &[P::Vertex],
target: &mut T,
supplement: Self::Supplement
)
Rasterize the provided vertex data and write the resulting fragment information to the target.
Implementors
impl<'a, D: Target<Item = f32>> Rasterizer for Lines<'a, D>
[src]
type Input = [f32; 3]
type Supplement = Option<&'a mut D>
fn draw<P: Pipeline, T: Target<Item = P::Pixel>>(
pipeline: &P,
vertices: &[P::Vertex],
target: &mut T,
depth: Self::Supplement
)
[src]
pipeline: &P,
vertices: &[P::Vertex],
target: &mut T,
depth: Self::Supplement
)