Texture

Trait Texture 

Source
pub trait Texture:
    Sized
    + Sync
    + Send
    + Clone
    + 'static {
    // Required methods
    fn get_descriptor(&self) -> TextureDescriptor;
    fn get_gl_handle(&self) -> usize;
}
Expand description

Represents an image whose data is resident in GPU memory. Reference counted, thread safe, immutable object.

Required Methods§

Source

fn get_descriptor(&self) -> TextureDescriptor

Returns descriptor of the texture.

Source

fn get_gl_handle(&self) -> usize

Gets the native OpenGL handle associated with this texture.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§