[][src]Trait rask_engine::resources::GetTextures

pub trait GetTextures {
    fn get_textures<U: Into<usize> + Debug + Copy>(
        &self,
        id: U
    ) -> Result<Vec<(u64, &Texture)>, EngineError>;
fn get_texture<U: Into<usize> + Debug + Copy>(
        &self,
        id: U,
        sid: u64
    ) -> Result<&Texture, EngineError>; }

Required methods

fn get_textures<U: Into<usize> + Debug + Copy>(
    &self,
    id: U
) -> Result<Vec<(u64, &Texture)>, EngineError>

Retrieve a resource from the library.

fn get_texture<U: Into<usize> + Debug + Copy>(
    &self,
    id: U,
    sid: u64
) -> Result<&Texture, EngineError>

Retrieve a texture from the library.

Loading content...

Implementors

impl GetTextures for ResourceTable[src]

Loading content...