pub fn texture_id(&self) -> Option<&Texture> {
        match *self {
            RenderTarget::Screen => None,
            RenderTarget::Offscreen(ref o) => Some(&o.texture),
        }
    }
/// Returns an opengl handle to the off-screen texture buffer.
///
/// Returns `None` if the texture is off-screen.
Returns an opengl handle to the off-screen texture buffer.
Returns `None` if the texture is off-screen.
Returns an opengl handle to the off - screen texture buffer . Returns ` None ` if the texture is off - screen .
pub fn texture_id(&self) -> Option<&Texture> {
        match *self {
            RenderTarget::Screen => None,
            RenderTarget::Offscreen(ref o) => Some(&o.texture),
        }
    }
pub fn texture_id ( & self ) -> Option < & Texture > { match * self { RenderTarget :: Screen => None , RenderTarget :: Offscreen ( ref o ) => Some ( & o . texture ) , } }
Returns an opengl handle to the off-screen texture buffer.
Returns an opengl handle to the off - screen texture buffer .
&self
&self