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

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.

A positive margin will shift the tile grid relative to the left of the viewport by this many pixels.

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]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for ViewportTileData

impl Sync for ViewportTileData