Texture

Trait Texture 

Source
pub trait Texture {
    // Required methods
    fn is_texture(&self, node: &Node) -> Result<bool>;
    fn decompress_texture(&self, node: &Node) -> Result<(Vec<u8>, String)>;
}

Required Methods§

Source

fn is_texture(&self, node: &Node) -> Result<bool>

Check if the given node is a texture.

§Errors

Returns an error if the H cache is not found.

Source

fn decompress_texture(&self, node: &Node) -> Result<(Vec<u8>, String)>

Decompresses the texture file data for the given node.

§Returns

A tuple containing the decompressed audio file data and the name of the audio file.

Implementations on Foreign Types§

Source§

impl Texture for Package<CachePairReader>

Source§

fn is_texture(&self, node: &Node) -> Result<bool>

Source§

fn decompress_texture(&self, node: &Node) -> Result<(Vec<u8>, String)>

Implementors§