The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Functions
surface_helper Namespace Reference

Functions

auto pixel_span (const surface &surf)
 Returns a read-only view over to surf's underlying pixel array.
 
auto pixel_span (surface &surf)
 Returns a mutable per-pixel view over surf's underlying pixel array.
 

Function Documentation

◆ pixel_span() [1/2]

auto surface_helper::pixel_span ( const surface &  surf)
inlineprivate

Returns a read-only view over to surf's underlying pixel array.

Definition at line 74 of file surface.hpp.

References surface::area(), and surf.

Referenced by surface_locker< T >::pixel_span().

◆ pixel_span() [2/2]

auto surface_helper::pixel_span ( surface &  surf)
inlineprivate

Returns a mutable per-pixel view over surf's underlying pixel array.

Definition at line 83 of file surface.hpp.

References surface::area(), and surf.