[−][src]Struct three_d::core::texture::TextureCubeMap
Fields
width: usizeheight: usizeMethods
impl TextureCubeMap[src]
pub fn new(
gl: &Gl,
width: usize,
height: usize,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
format: Format
) -> Result<TextureCubeMap, Error>[src]
gl: &Gl,
width: usize,
height: usize,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
format: Format
) -> Result<TextureCubeMap, Error>
pub fn new_from_bytes(
gl: &Gl,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
back_bytes: &[u8],
front_bytes: &[u8],
top_bytes: &[u8],
left_bytes: &[u8],
right_bytes: &[u8]
) -> Result<TextureCubeMap, Error>[src]
gl: &Gl,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
back_bytes: &[u8],
front_bytes: &[u8],
top_bytes: &[u8],
left_bytes: &[u8],
right_bytes: &[u8]
) -> Result<TextureCubeMap, Error>
pub fn new_from_files(
gl: &Gl,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
path: &str,
back_name: &str,
front_name: &str,
top_name: &str,
left_name: &str,
right_name: &str
) -> Result<TextureCubeMap, Error>[src]
gl: &Gl,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
path: &str,
back_name: &str,
front_name: &str,
top_name: &str,
left_name: &str,
right_name: &str
) -> Result<TextureCubeMap, Error>
pub fn new_with_u8(
gl: &Gl,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
width: u32,
height: u32,
data: [&[u8]; 6]
) -> Result<Self, Error>[src]
gl: &Gl,
min_filter: Interpolation,
mag_filter: Interpolation,
mip_map_filter: Option<Interpolation>,
wrap_s: Wrapping,
wrap_t: Wrapping,
wrap_r: Wrapping,
width: u32,
height: u32,
data: [&[u8]; 6]
) -> Result<Self, Error>
pub fn fill_with_u8(&mut self, data: [&[u8]; 6]) -> Result<(), Error>[src]
Trait Implementations
impl Drop for TextureCubeMap[src]
impl Texture for TextureCubeMap[src]
Auto Trait Implementations
impl !RefUnwindSafe for TextureCubeMap
impl !Send for TextureCubeMap
impl !Sync for TextureCubeMap
impl Unpin for TextureCubeMap
impl UnwindSafe for TextureCubeMap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,