[][src]Trait amethyst_rendy::types::Backend

pub trait Backend: Backend {
    fn unwrap_mesh(mesh: &Mesh) -> Option<&Mesh<Self>>;
fn unwrap_texture(texture: &Texture) -> Option<&Texture<Self>>;
fn wrap_mesh(mesh: Mesh<Self>) -> Mesh;
fn wrap_texture(texture: Texture<Self>) -> Texture; }

Extension of the rendy Backend trait.

Required methods

fn unwrap_mesh(mesh: &Mesh) -> Option<&Mesh<Self>>

Unwrap a Backend to a rendy Mesh

fn unwrap_texture(texture: &Texture) -> Option<&Texture<Self>>

Unwrap a Backend to a rendy Texture

fn wrap_mesh(mesh: Mesh<Self>) -> Mesh

Wrap a rendy Mesh to its Backend generic.

fn wrap_texture(texture: Texture<Self>) -> Texture

Wrap a rendy Texture to its Backend generic.

Loading content...

Implementors

impl Backend for Backend[src]

Loading content...