[][src]Trait sixtyfps_corelib::graphics::RenderingPrimitivesBuilder

pub trait RenderingPrimitivesBuilder {
    type LowLevelRenderingPrimitive;
    pub fn create(
        &mut self,
        primitive: HighLevelRenderingPrimitive
    ) -> Self::LowLevelRenderingPrimitive; }

RenderingPrimitivesBuilder is used to convert instances of HighLevelRenderingPrimitive to the back-end specific GraphicsBackend::LowLevelRenderingPrimitive, giving the backend a way to determin the optimal representation for rendering later. For example this may involve uploading textures for images to GPU memory, pre-rendering glyphs or allocating vertex buffers.

Associated Types

type LowLevelRenderingPrimitive[src]

This associated type is usually provided through the GraphicsBackend::LowLevelRenderingPrimitive type.

Loading content...

Required methods

pub fn create(
    &mut self,
    primitive: HighLevelRenderingPrimitive
) -> Self::LowLevelRenderingPrimitive
[src]

Lowers the high-level rendering primitive to a representation suitable for the graphics backend.

Arguments:

  • primitive: The primitive to convert.
Loading content...

Implementors

Loading content...