SdlSurfacePointerEx extension

on

Methods

blit(Pointer<SdlSurface> dst, {Rectangle<double>? srcrect, Rectangle<double>? dstrect}) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

blitScaled(Pointer<SdlSurface> dst, {Rectangle<double>? srcrect, Rectangle<double>? dstrect}) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

createColorCursor(int hotX, int hotY) Pointer<SdlCursor>

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Create a color cursor.
destroy() bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Free a surface.
duplicate() Pointer<SdlSurface>

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Creates a new surface identical to the existing surface.
fillRect(Rectangle<double>? rect, int color) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Perform a fast fill of a rectangle with a specific color.
fillRects(List<Rectangle<double>> rects, int color) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Perform a fast fill of a set of rectangles with a specific color.
getAlphaMod() int?

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Get the additional alpha value used in blit operations.
getBlendMode() int?

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Get the blend mode used for blit operations.
getClipRect() Rectangle<double>

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Get the clipping rectangle for a surface.
getColorKey() int?

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Get the color key (transparent pixel) for a surface.
getColorMod() int?

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Get the additional color value multiplied into blit operations.
hadColorKey() bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Returns whether the surface has a color key.
hasRre() bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Returns whether the surface is RLE enabled.
loadBmpIo(Pointer<SdlIoStream> src, bool freesrc) Pointer<SdlSurface>

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Load a BMP image from a seekable SDL data stream.
lock() bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set up a surface for directly accessing the pixels.
lowerBlit(Pointer<SdlSurface> dst, {Rectangle<double>? srcrect, Rectangle<double>? dstrect}) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Perform low-level surface blitting only.
lowerBlitScaled(Pointer<SdlSurface> dst, {Rectangle<double>? srcrect, Rectangle<double>? dstrect, int scaleMode = 0}) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Perform low-level surface scaled blitting only.
saveBmp(String file) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Save a surface to a file.
saveBmpIo(Pointer<SdlIoStream> dst, bool freedst) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Save a surface to a seekable SDL data stream in BMP format.
setAlphaMod(int alpha) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set an additional alpha value used in blit operations.
setBlendMode(int blendMode) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set the blend mode used for blit operations.
setClipRect([Rectangle<double>? rect]) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set the clipping rectangle for a surface.
setColorKey(bool enabled, int key) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set the color key (transparent pixel) in a surface.
setColorMod(int r, int g, int b) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set an additional color value multiplied into blit operations.
setPalette(Pointer<SdlPalette> palette) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set the palette used by a surface.
setRre(bool enabled) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Set the RLE acceleration hint for a surface.
unlock() → void

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Release a surface after directly accessing the pixels.
upperBlit(Pointer<SdlSurface> dst, {Rectangle<double>? srcrect, Rectangle<double>? dstrect}) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Performs a fast blit from the source surface to the destination surface.
upperBlitScaled(Pointer<SdlSurface> dst, {Rectangle<double>? srcrect, Rectangle<double>? dstrect, int scaleMode = 0}) bool

Available on Pointer<SdlSurface>, provided by the SdlSurfacePointerEx extension

Perform a scaled blit to a destination surface, which may be of a different format.