20 #include <SDL2/SDL_surface.h>
51 std::size_t
area()
const;
53 operator SDL_Surface*()
const {
return surface_; }
Helper class for pinning SDL surfaces into memory.
utils::const_clone_t< uint32_t, T > pixel_t
utils::span< pixel_t > pixel_span() const
SDL_Surface * operator->() const
surface clone() const
Creates a new, duplicate surface in memory using the 'neutral' pixel format.
SDL_Surface * get() const
std::size_t area() const
Total area of the surface in square pixels.
surface & operator=(const surface &s)
typename const_clone< D, S >::type const_clone_t
std::ostream & operator<<(std::ostream &stream, const surface &surf)
static map_location::direction s