Struct glw::rendertarget::RenderTarget [−][src]
pub struct RenderTarget { /* fields omitted */ }
Methods
impl RenderTarget
[src]
impl RenderTarget
pub fn new(size: Vec2<u32>) -> Result<RenderTarget, &'static str>
[src]
pub fn new(size: Vec2<u32>) -> Result<RenderTarget, &'static str>
Creates a new render target with a specified size
pub fn map_data(&mut self, data: &Vec<Color>)
[src]
pub fn map_data(&mut self, data: &Vec<Color>)
Copies data from the CPU to the GPU memory
pub fn get_fb(&self) -> GLuint
[src]
pub fn get_fb(&self) -> GLuint
Returns the internal OpenGL handle to the framebuffer
pub fn get_texture(&self) -> GLuint
[src]
pub fn get_texture(&self) -> GLuint
Returns the internal OpenGL handle to the texture
pub fn width(&self) -> u32
[src]
pub fn width(&self) -> u32
pub fn height(&self) -> u32
[src]
pub fn height(&self) -> u32
Trait Implementations
impl Default for RenderTarget
[src]
impl Default for RenderTarget
fn default() -> RenderTarget
[src]
fn default() -> RenderTarget
Returns the "default value" for a type. Read more
impl Drop for RenderTarget
[src]
impl Drop for RenderTarget
Auto Trait Implementations
impl Send for RenderTarget
impl Send for RenderTarget
impl Sync for RenderTarget
impl Sync for RenderTarget