Surface
Object Hierarchy:
Description:
[ CCode ( cname = "SDL_Surface" , ref_function = "SDL_Surface_up" , unref_function = "SDL_FreeSurface" ) ]
[ Compact ]
public class Surface
Content:
Static methods:
Creation methods:
- public Surface.from_bmp (string file)
- public Surface.from_bmp_rw (RWops src, int freesrc = 0)
- public Surface.from_rgb (void* pixels, int width, int height, int depth, int pitch, uint32 rmask, uint32 gmask, uint32 bmask, uint32 amask)
- public Surface.from_rgb_with_format (void* pixels, int width, int height, int depth, int pitch, PixelRAWFormat format)
- public Surface.legacy_rgb (uint32 flags, int width, int height, int depth, uint32 rmask, uint32 gmask, uint32 bmask, uint32 amask)
- public Surface.legacy_rgb_with_format (uint32 flags, int width, int height, int depth, PixelRAWFormat format)
- public Surface.rgb (int width, int height, int depth, uint32 rmask, uint32 gmask, uint32 bmask, uint32 amask)
- public Surface.rgb_with_format (int width, int height, int depth, PixelRAWFormat format)
Methods:
- public void @unlock ()
- public int blit (Rect? srcrect, Surface dst, Rect? dstrect)
- public int blit_scaled (Rect? srcrect, Surface dst, Rect? dstrect)
- public Surface? convert (PixelFormat? fmt, uint32 flags)
- public Surface? convert_format (uint32 pixel_fmt, uint32 flags)
- public int do_lock ()
- public int fill_rect (Rect? rect, uint32 color)
- public int fill_rects (Rect[] rects, uint32 color)
- public int get_alphamod (out uint8 alpha)
- public int get_blend_mode (out BlendMode blend_mode)
- public int get_cliprect (out Rect rect)
- public int get_colorkey (out uint32 key)
- public int get_colormod (out uint8 r, out int8 g, out uint8 b)
- public int lowerblit (Rect? srcrect, Surface dst, Rect? dstrect)
- public int lowerblit_scaled (Rect? srcrect, Surface dst, Rect? dstrect)
- public bool must_lock ()
- public int save_bmp (string file)
- public int save_bmp_rw (RWops dst, int freedst = 0)
- public int set_alphamod (uint8 alpha)
- public int set_blend_mode (BlendMode blend_mode)
- public bool set_cliprect (Rect? rect)
- public int set_colorkey (int flag, uint32 key)
- public int set_colormod (uint8 r, uint8 g, uint8 b)
- public int set_palette (Palette palette)
- public int set_rle (int flag)
- public int softstretch (Rect? srcrect, Surface dst, Rect? dstrect)
- public unowned Surface up ()
Fields: