Struct three_d::object::Skybox[][src]

pub struct Skybox { /* fields omitted */ }

An illusion of a sky.

Implementations

impl Skybox[src]

pub fn new(
    context: &Context,
    cpu_texture: &mut CPUTexture<u8>
) -> Result<Skybox, Error>
[src]

pub fn new_with_texture(
    context: &Context,
    texture: TextureCubeMap
) -> Result<Skybox, Error>
[src]

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]

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, 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.