Struct glium::BlitTarget [] [src]

pub struct BlitTarget {
    pub left: u32,
    pub bottom: u32,
    pub width: i32,
    pub height: i32,
}

Area of a surface in pixels. Similar to a Rect except that dimensions can be negative.

In the OpenGL ecosystem, the (0,0) coordinate is at the bottom-left hand corner of the images.

Fields

left

Number of pixels between the left border of the surface and the left border of the rectangle.

bottom

Number of pixels between the bottom border of the surface and the bottom border of the rectangle.

width

Width of the area in pixels. Can be negative.

height

Height of the area in pixels. Can be negative.

Trait Implementations

Derived Implementations

impl Eq for BlitTarget

impl PartialEq for BlitTarget

fn eq(&self, __arg_0: &BlitTarget) -> bool

fn ne(&self, __arg_0: &BlitTarget) -> bool

impl Default for BlitTarget

fn default() -> BlitTarget

impl Copy for BlitTarget

impl Clone for BlitTarget

fn clone(&self) -> BlitTarget

fn clone_from(&mut self, source: &Self)

impl Debug for BlitTarget

fn fmt(&self, __arg_0: &mut Formatter) -> Result