devotee_backendTrait RenderSurface
source pub trait RenderSurface {
type Data;
// Required methods
fn width(&self) -> usize;
fn height(&self) -> usize;
fn data(&self, x: usize, y: usize) -> Self::Data;
}
Expand description
The surface for the Application to perform rendering on.
Pixel data to be returned to the Middleware’s render target.
Get the width of the render surface in pixels.
Get the height of the render surface in pixels.
Get specific pixel data.
§Panics
For values outside of safe range may panic or may return garbage value.