Struct three_d::object::Skybox [−][src]
An illusion of a sky.
Implementations
impl Skybox
[src]
pub fn new(
context: &Context,
cpu_texture: &mut CPUTexture<u8>
) -> Result<Skybox, Error>
[src]
context: &Context,
cpu_texture: &mut CPUTexture<u8>
) -> Result<Skybox, Error>
pub fn new_with_texture(
context: &Context,
texture: TextureCubeMap
) -> Result<Skybox, Error>
[src]
context: &Context,
texture: TextureCubeMap
) -> Result<Skybox, Error>
pub fn render(&self, viewport: Viewport, camera: &Camera) -> Result<(), Error>
[src]
Render the skybox. Must be called in a render target render function, for example in the callback function of Screen::write.
pub fn get_texture(&self) -> &TextureCubeMap
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Skybox
impl !Send for Skybox
impl !Sync for Skybox
impl Unpin for Skybox
impl UnwindSafe for Skybox
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,