Struct gl_utils::render::resource::ViewportTileData [−][src]
pub struct ViewportTileData { pub vertex_range: Range<usize>, pub margin_px_left: i16, pub margin_px_top: i16, }
Per-viewport data for tile rendering
Fields
vertex_range: Range<usize>
Each range defines the tiles in the tiles_vertex_buffer
belonging to the
corresponding viewport.
In the default 2D drawing function, each viewport draws with the slice of tile vertices represented by its range.
margin_px_left: i16
A positive margin will shift the tile grid relative to the left of the viewport by this many pixels.
margin_px_top: i16
A positive margin will shift the tile grid downward from the top of the viewport by this many pixels.
Trait Implementations
impl Default for ViewportTileData
[src]
impl Default for ViewportTileData
Auto Trait Implementations
impl Send for ViewportTileData
impl Send for ViewportTileData
impl Sync for ViewportTileData
impl Sync for ViewportTileData