Surface

Constructors

this
this(Platform platform, SDL_Surface* surface, Owned owned)
this
this(Platform platform, int width, int height, int depth, uint Rmask, uint Gmask, uint Bmask, uint Amask)
this
this(Platform platform, void* pixels, int width, int height, int depth, int pitch, uint Rmask, uint Gmask, uint Bmask, uint Amask)

Destructor

~this
~this()

Members

Enums

Owned
enum Owned

Functions

blit
void blit(Surface source, SDL_Rect srcRect, SDL_Rect dstRect)
blitScaled
void blitScaled(Surface source, SDL_Rect srcRect, SDL_Rect dstRect)
clone
Surface clone()
convert
Surface convert(const(SDL_PixelFormat)* newFormat)
handle
SDL_Surface* handle()
lock
void lock()
pitch
size_t pitch()
pixelFormat
SDL_PixelFormat* pixelFormat()
pixels
ubyte* pixels()
rgba
RGBA rgba(int x, int y)
setColorKey
void setColorKey(bool enable, uint key)
setColorKey
void setColorKey(bool enable, ubyte r, ubyte g, ubyte b, ubyte a)
unlock
void unlock()

Properties

height
int height [@property getter]
width
int width [@property getter]

Structs

RGBA
struct RGBA

Variables

_handleOwned
Owned _handleOwned;
Undocumented in source.
_platform
Platform _platform;
Undocumented in source.
_surface
SDL_Surface* _surface;
Undocumented in source.

Meta