89 operator SDL_Surface*()
const {
return surface_; }
131 locked_ = SDL_LockSurface(
surface_) == 0;
159 SDL_Rect final_rect = { 0, 0, 0, 0 };
162 SDL_IntersectRect(&rect_, r, &final_rect);
168 SDL_SetClipRect(
surface_, &final_rect);
SDL_Surface * get() const
static void add_surface_ref(SDL_Surface *surf)
surface(const surface &s)
void assign_surface_internal(SDL_Surface *surf)
surface & operator=(surface &&s) noexcept
surface clone() const
Makes a copy of this surface.
surface(surface &&s) noexcept
surface & operator=(const surface &s)
surface & make_neutral()
Converts this surface to a neutral format if it is not already.
utils::const_clone_t< uint32_t, T > pixel_t
bool operator<(const surface &a, const surface &b)
std::ostream & operator<<(std::ostream &stream, const surface &surf)
static map_location::DIRECTION s
Helper class for pinning SDL surfaces into memory.
SDL_Surface * operator->() const
bool is_neutral() const
Check that the surface is neutral bpp 32.
clip_rect_setter(const surface &surf, const SDL_Rect *r, bool operate=true)
Contains the SDL_Rect helper code.
typename const_clone< D, S >::type const_clone_t
static const SDL_PixelFormat neutral_pixel_format