[][src]Struct screen_13::gpu::Gpu

pub struct Gpu { /* fields omitted */ }

Allows you to load resources and begin rendering operations.

Implementations

impl Gpu[src]

pub fn offscreen() -> Self[src]

pub fn load_indexed_model<M: IntoIterator<Item = Mesh>, I: IntoIterator<Item = u32>, V: IntoIterator<Item = VV>, VV: Copy + Into<Vertex>>(
    &self,
    meshes: M,
    _indices: I,
    _vertices: V
) -> Result<Model, BadData>
[src]

pub fn load_model<IM: IntoIterator<Item = M>, IV: IntoIterator<Item = V>, M: Into<Mesh>, V: Copy + Into<Vertex>>(
    &self,
    meshes: IM,
    vertices: IV
) -> Result<Model, BadData>
[src]

pub fn read_animation<R: Read + Seek>(
    &self,
    _name: &str,
    _pak: &mut Pak<R>,
    _id: AnimationId
) -> ModelRef
[src]

pub fn read_bitmap<K: AsRef<str>, R: Read + Seek>(
    &self,
    pak: &mut Pak<R>,
    key: K
) -> Bitmap
[src]

pub fn read_bitmap_with_id<R: Read + Seek>(
    &self,
    pak: &mut Pak<R>,
    id: BitmapId
) -> Bitmap
[src]

pub fn read_font<F: AsRef<str>, R: Read + Seek>(
    &self,
    pak: &mut Pak<R>,
    face: F
) -> Font
[src]

Only bitmapped fonts are supported.

pub fn read_model<K: AsRef<str>, R: Read + Seek>(
    &self,
    pak: &mut Pak<R>,
    key: K
) -> Model
[src]

pub fn read_model_with_id<R: Read + Seek>(
    &self,
    pak: &mut Pak<R>,
    id: ModelId
) -> Model
[src]

pub fn render<D: Into<Extent>>(&self, dims: D) -> Render[src]

pub fn render_with_cache<D: Into<Extent>>(
    &self,
    dims: D,
    cache: &Cache
) -> Render
[src]

pub fn resolve(&self, render: Render) -> Lease<Texture2d>[src]

Resolves a render into a texture which can be written to other renders.

Trait Implementations

impl Drop for Gpu[src]

Auto Trait Implementations

impl !RefUnwindSafe for Gpu[src]

impl !Send for Gpu[src]

impl !Sync for Gpu[src]

impl Unpin for Gpu[src]

impl !UnwindSafe for Gpu[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.