Struct glin::cubemap::Builder [−][src]
pub struct Builder<'a>(_);
Implementations
impl<'a> Builder<'a>
[src]
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]
<I as Image>::DataType: Copy,
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]
&self,
dds: &I,
level: usize
) -> Result<CubeMap> where
<I as Image>::DataType: Copy,
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]
&self,
dds: &I,
level: usize
) -> Result<CubeMap> where
<I as Image>::DataType: Copy,
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