[−][src]Struct glium_graphics::GliumGraphics
Graphics back-end.
Implementations
impl<'d, 's, S: Surface> GliumGraphics<'d, 's, S>
[src]
pub fn new(
system: &'d mut Glium2d,
surface: &'s mut S
) -> GliumGraphics<'d, 's, S>
[src]
system: &'d mut Glium2d,
surface: &'s mut S
) -> GliumGraphics<'d, 's, S>
Creates a new graphics object.
Trait Implementations
impl<'d, 's, S: Surface> Graphics for GliumGraphics<'d, 's, S>
[src]
Implemented by all graphics back-ends.
type Texture = Texture
The texture type associated with the back-end. Read more
pub fn clear_color(&mut self, color: [f32; 4])
[src]
Clears background with a color.
pub fn clear_stencil(&mut self, value: u8)
[src]
pub fn tri_list<F>(
&mut self,
draw_state: &DrawState,
color: &[f32; 4],
mut f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]])),
[src]
&mut self,
draw_state: &DrawState,
color: &[f32; 4],
mut f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]])),
Renders list of 2d triangles.
pub fn tri_list_c<F>(&mut self, draw_state: &DrawState, mut f: F) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 4]])),
[src]
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 4]])),
pub fn tri_list_uv<F>(
&mut self,
draw_state: &DrawState,
color: &[f32; 4],
texture: &Texture,
mut f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]])),
[src]
&mut self,
draw_state: &DrawState,
color: &[f32; 4],
texture: &Texture,
mut f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]])),
Renders list of 2d triangles.
A texture coordinate is assigned per vertex. The texture coordinates refers to the current texture.
pub fn tri_list_uv_c<F>(
&mut self,
draw_state: &DrawState,
texture: &Texture,
mut f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]], &[[f32; 4]])),
[src]
&mut self,
draw_state: &DrawState,
texture: &Texture,
mut f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]], &[[f32; 4]])),
pub fn rectangle<R>(
&mut self,
r: &Rectangle,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
[src]
&mut self,
r: &Rectangle,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
pub fn polygon(
&mut self,
p: &Polygon,
polygon: &[[f64; 2]],
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
[src]
&mut self,
p: &Polygon,
polygon: &[[f64; 2]],
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
pub fn polygon_tween_lerp(
&mut self,
p: &Polygon,
polygons: &[&[[f64; 2]]],
tween_factor: f64,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
[src]
&mut self,
p: &Polygon,
polygons: &[&[[f64; 2]]],
tween_factor: f64,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
pub fn image(
&mut self,
image: &Image,
texture: &Self::Texture,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
[src]
&mut self,
image: &Image,
texture: &Self::Texture,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
pub fn ellipse<R>(
&mut self,
e: &Ellipse,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
[src]
&mut self,
e: &Ellipse,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
pub fn line<L>(
&mut self,
l: &Line,
line: L,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
L: Into<[f64; 4]>,
[src]
&mut self,
l: &Line,
line: L,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
L: Into<[f64; 4]>,
pub fn circle_arc<R>(
&mut self,
c: &CircleArc,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
[src]
&mut self,
c: &CircleArc,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
Auto Trait Implementations
impl<'d, 's, S> !RefUnwindSafe for GliumGraphics<'d, 's, S>
[src]
impl<'d, 's, S> !Send for GliumGraphics<'d, 's, S>
[src]
impl<'d, 's, S> !Sync for GliumGraphics<'d, 's, S>
[src]
impl<'d, 's, S> Unpin for GliumGraphics<'d, 's, S>
[src]
impl<'d, 's, S> !UnwindSafe for GliumGraphics<'d, 's, S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,