Struct three_d::object::Skybox [−][src]
pub struct Skybox<T: TextureValueType> { /* fields omitted */ }
Expand description
An illusion of a sky.
Implementations
impl<T: TextureValueType> Skybox<T>
[src]
impl<T: TextureValueType> Skybox<T>
[src]pub fn new(
context: &Context,
cpu_texture: &mut CPUTexture<T>
) -> Result<Skybox<T>, Error>
[src]
context: &Context,
cpu_texture: &mut CPUTexture<T>
) -> Result<Skybox<T>, Error>
pub fn new_with_texture(
context: &Context,
texture: TextureCubeMap<T>
) -> Result<Skybox<T>, Error>
[src]
context: &Context,
texture: TextureCubeMap<T>
) -> Result<Skybox<T>, Error>
pub fn render(&self, viewport: Viewport, camera: &Camera) -> Result<(), 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<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Skybox<T>
impl<T> !Send for Skybox<T>
impl<T> !Sync for Skybox<T>
impl<T> Unpin for Skybox<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Skybox<T> where
T: UnwindSafe,
T: UnwindSafe,