Enum kiss3d::resource::RenderTarget [−][src]
pub enum RenderTarget { Screen, Offscreen(OffscreenBuffers), }
The target to every rendering call.
Variants
Screen
The screen (main framebuffer).
Offscreen(OffscreenBuffers)
An off-screen buffer.
Methods
impl RenderTarget
[src]
impl RenderTarget
pub fn texture_id(&self) -> Option<&Texture>
[src]
pub fn texture_id(&self) -> Option<&Texture>
Returns an opengl handle to the off-screen texture buffer.
Returns None
if the texture is off-screen.
pub fn depth_id(&self) -> Option<&Texture>
[src]
pub fn depth_id(&self) -> Option<&Texture>
Returns an opengl handle to the off-screen depth buffer.
Returns None
if the texture is off-screen.
pub fn resize(&mut self, w: f32, h: f32)
[src]
pub fn resize(&mut self, w: f32, h: f32)
Resizes this render target.
Auto Trait Implementations
impl Send for RenderTarget
impl Send for RenderTarget
impl Sync for RenderTarget
impl Sync for RenderTarget