|
Public Types |
typedef etl::handle< SurfaceNew > | Handle |
typedef etl::handle< const
SurfaceNew > | HandleConst |
typedef etl::loose_handle<
SurfaceNew > | LooseHandle |
typedef SurfaceChannelLock | ChannelLock |
typedef SurfaceChannelLockConst | ChannelLockConst |
Public Member Functions |
virtual | ~SurfaceNew () |
int | get_w () const |
int | get_h () const |
void | set_wh (int w, int h) |
ColorSystem | get_color_system () const |
void | set_color_system (ColorSystem x) |
Color | get_color (int x, int y) const |
| Should only be used in certain circumstances.
|
void | lock () |
void | unlock () |
bool | trylock () |
ChannelLock | lock_channel (Channel chan) |
ChannelLockConst | lock_channel_const (Channel chan) const |
ChannelLock | lock_channel_alpha (Channel chan) |
ChannelLockConst | lock_channel_alpha_const (Channel chan) const |
bool | is_channel_defined (Channel chan) const |
bool | get_premult () const |
void | set_premult () |
Static Public Member Functions |
static Handle | create (int w=0, int h=0, ColorSystem sys=COLORSYS_RGB) |
| Normal SurfaceNew Constructor.
|
static Handle | create (const Surface &) |
| Converts an old Surface to a SurfaceNew.
|
static Handle | create (HandleConst) |
| Dupilcates a surface.
|
static Handle | crop (HandleConst, int x, int y, int w, int h) |
| Creates a cropped copy of a surface.
|
static void | blit (Handle dest, int x_dest, int y_dest, HandleConst src, float amount=1.0, Color::BlendMethod bm=Color::BLEND_COMPOSITE) |
static void | blit (Handle dest, int x_dest, int y_dest, Handle src, int x_src, int y_src, int w_src, int h_src, float amount=1.0, Color::BlendMethod bm=Color::BLEND_COMPOSITE) |
static void | chan_mlt (ChannelLock &dest, float x) |
static void | chan_mlt (ChannelLock &dest, const ChannelLockConst &x) |
static void | chan_div (ChannelLock &dest, float x) |
static void | chan_div (ChannelLock &dest, const ChannelLockConst &x) |
static void | chan_add (ChannelLock &dest, float x) |
static void | chan_add (ChannelLock &dest, const ChannelLockConst &x) |
static void | chan_sub (ChannelLock &dest, float x) |
static void | chan_sub (ChannelLock &dest, const ChannelLockConst &x) |
Public Attributes |
typedef | SurfaceChannel |
typedef | SurfaceColorSystem |
Protected Member Functions |
| SurfaceNew () |
Friends |
class | SurfaceChannelLock |
class | Lock |
Classes |
class | Lock |