[−][src]Trait sixtyfps_corelib::graphics::RenderingPrimitivesBuilder
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.
Required methods
pub fn create(
&mut self,
primitive: HighLevelRenderingPrimitive
) -> Self::LowLevelRenderingPrimitive
[src]
&mut self,
primitive: HighLevelRenderingPrimitive
) -> Self::LowLevelRenderingPrimitive
Lowers the high-level rendering primitive to a representation suitable for the graphics backend.
Arguments:
primitive
: The primitive to convert.