pub fn viewport(x: u32, y: u32, w: u32, h: u32) {
    unsafe {
        // origin_top_left: true
        ffi::sg_apply_viewport(x as i32, y as i32, w as i32, h as i32, true);
    }
}
/// Output rectangle space
///
/// Must be called inside a rendering pass
///
/// The (0, 0) point is at the left-bottom corner of the target. TODO: really?
Output rectangle space
Must be called inside a rendering pass

The (0, 0) point is at the left-bottom corner of the target.
Output rectangle space Must be called inside a rendering pass The ( 0 0 ) point is at the left - bottom corner of the target .
pub fn viewport(x: u32, y: u32, w: u32, h: u32) {
    unsafe {
        // origin_top_left: true
        ffi::sg_apply_viewport(x as i32, y as i32, w as i32, h as i32, true);
    }
}
pub fn viewport ( x : u32 , y : u32 , w : u32 , h : u32 ) { unsafe { // origin_top_left: true ffi :: sg_apply_viewport ( x as i32 , y as i32 , w as i32 , h as i32 , true ) ; } }
Output rectangle space
Must be called inside a rendering pass
Output rectangle space Must be called inside a rendering pass
x
u32
y
u32
w
u32
h
u32
x
u32
y
u32
w
u32
h
u32