Struct glin::cubemap::Builder[][src]

pub struct Builder<'a>(_);

Implementations

impl<'a> Builder<'a>[src]

pub fn from_format(&self, format: Format) -> Result<CubeMap>[src]

Creates a new cubemap using the specified format

pub fn from_faces<I: Image>(&self, faces: &Faces<I>) -> Result<CubeMap>[src]

allocate a cubemap from a set of images in a Faces struct

pub fn from_cubemap_image<I: CubemapImage>(&self, dds: &I) -> Result<CubeMap> where
    <I as Image>::DataType: Copy
[src]

Allocate a cubemap from a CubemapImage that contains all the faces

pub fn from_cubemap_image_level<I: CubemapImage>(
    &self,
    dds: &I,
    level: usize
) -> Result<CubeMap> where
    <I as Image>::DataType: Copy
[src]

Allocate a cubemap from a CubemapImage that contains all the faces

Reads only one specific level from the cubemap image

pub fn from_cubemap_image_level_allocate_mips<I: CubemapImage>(
    &self,
    dds: &I,
    level: usize
) -> Result<CubeMap> where
    <I as Image>::DataType: Copy
[src]

Allocate a cubemap from a CubemapImage that contains all the faces

Reads only one specific level from the cubemap image and allocates the texture with the max number of mips possible for the base level size

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Builder<'a>

impl<'a> !Send for Builder<'a>

impl<'a> !Sync for Builder<'a>

impl<'a> Unpin for Builder<'a>

impl<'a> !UnwindSafe for Builder<'a>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[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[src]

type Init = T

The type for initializers.

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.