Struct rinvideo::frame::Frame [−][src]
pub struct Frame { /* fields omitted */ }
Methods
impl Frame
[src]
impl Frame
pub fn new(
context_id: usize,
gl: &CreationProxy,
sample: Sample
) -> Result<Frame>
[src]
pub fn new(
context_id: usize,
gl: &CreationProxy,
sample: Sample
) -> Result<Frame>
pub fn len(&self) -> u64
[src]
pub fn len(&self) -> u64
pub fn data<'a>(&'a self) -> &'a [u8]
[src]
pub fn data<'a>(&'a self) -> &'a [u8]
pub fn texture(&self) -> Option<&Texture>
[src]
pub fn texture(&self) -> Option<&Texture>
pub fn tex_for_plane(&self, plane: &str) -> Option<&Texture>
[src]
pub fn tex_for_plane(&self, plane: &str) -> Option<&Texture>
pub fn format(&self) -> &str
[src]
pub fn format(&self) -> &str
pub fn width(&self) -> i32
[src]
pub fn width(&self) -> i32
pub fn height(&self) -> i32
[src]
pub fn height(&self) -> i32
pub fn size(&self) -> Vec2<i32>
[src]
pub fn size(&self) -> Vec2<i32>
pub fn tex_scale(&self, plane: &str) -> Option<[f32; 2]>
[src]
pub fn tex_scale(&self, plane: &str) -> Option<[f32; 2]>
Trait Implementations
impl Drop for Frame
[src]
impl Drop for Frame
impl<'a> Render2d for &'a Frame
[src]
impl<'a> Render2d for &'a Frame
type Material = Material<'a>
fn default_material(&self) -> Material<'a>
[src]
fn default_material(&self) -> Material<'a>
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<R>,
pos: &Pnt2,
material: &M
)
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
fn render<R>(&self, renderer: &Renderer<R>, pos: &Point<f32, U2>) where
R: RenderSurface,
[src]
fn render<R>(&self, renderer: &Renderer<R>, pos: &Point<f32, U2>) where
R: RenderSurface,
fn render_size<R>(
&self,
renderer: &Renderer<R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
R: RenderSurface,
[src]
fn render_size<R>(
&self,
renderer: &Renderer<R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
R: RenderSurface,