The Battle for Wesnoth  1.19.19+dev
Functions
surface_helper Namespace Reference

Functions

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

Function Documentation

◆ pixel_span() [1/2]

auto surface_helper::pixel_span ( const surface surf)
inline

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)
inline

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.