sdl3/generated/lib_sdl_surface
library
Functions
-
sdlAddSurfaceAlternateImage(Pointer<SdlSurface> surface, Pointer<SdlSurface> image)
→ bool
-
Add an alternate version of a surface.
-
sdlBlitSurface(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ bool
-
Performs a fast blit from the source surface to the destination surface.
-
sdlBlitSurface9Grid(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, int leftWidth, int rightWidth, int topHeight, int bottomHeight, double scale, int scaleMode, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ bool
-
Perform a scaled blit using the 9-grid algorithm to a destination surface,
which may be of a different format.
-
sdlBlitSurfaceScaled(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect, int scaleMode)
→ bool
-
Perform a scaled blit to a destination surface, which may be of a different
format.
-
sdlBlitSurfaceTiled(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ bool
-
Perform a tiled blit to a destination surface, which may be of a different
format.
-
sdlBlitSurfaceTiledWithScale(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, double scale, int scaleMode, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ bool
-
Perform a scaled and tiled blit to a destination surface, which may be of a
different format.
-
sdlBlitSurfaceUnchecked(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ bool
-
Perform low-level surface blitting only.
-
sdlBlitSurfaceUncheckedScaled(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect, int scaleMode)
→ bool
-
Perform low-level surface scaled blitting only.
-
sdlClearSurface(Pointer<SdlSurface> surface, double r, double g, double b, double a)
→ bool
-
Clear a surface with a specific color, with floating point precision.
-
sdlConvertPixels(int width, int height, int srcFormat, Pointer<NativeType> src, int srcPitch, int dstFormat, Pointer<NativeType> dst, int dstPitch)
→ bool
-
Copy a block of pixels of one format to another format.
-
sdlConvertPixelsAndColorspace(int width, int height, int srcFormat, int srcColorspace, int srcProperties, Pointer<NativeType> src, int srcPitch, int dstFormat, int dstColorspace, int dstProperties, Pointer<NativeType> dst, int dstPitch)
→ bool
-
Copy a block of pixels of one format and colorspace to another format and
colorspace.
-
sdlConvertSurface(Pointer<SdlSurface> surface, int format)
→ Pointer<SdlSurface>
-
Copy an existing surface to a new surface of the specified format.
-
sdlConvertSurfaceAndColorspace(Pointer<SdlSurface> surface, int format, Pointer<SdlPalette> palette, int colorspace, int props)
→ Pointer<SdlSurface>
-
Copy an existing surface to a new surface of the specified format and
colorspace.
-
sdlCreateSurface(int width, int height, int format)
→ Pointer<SdlSurface>
-
Allocate a new surface with a specific pixel format.
-
sdlCreateSurfaceFrom(int width, int height, int format, Pointer<NativeType> pixels, int pitch)
→ Pointer<SdlSurface>
-
Allocate a new surface with a specific pixel format and existing pixel
data.
-
sdlCreateSurfacePalette(Pointer<SdlSurface> surface)
→ Pointer<SdlPalette>
-
Create a palette and associate it with a surface.
-
sdlDestroySurface(Pointer<SdlSurface> surface)
→ void
-
Free a surface.
-
sdlDuplicateSurface(Pointer<SdlSurface> surface)
→ Pointer<SdlSurface>
-
Creates a new surface identical to the existing surface.
-
sdlFillSurfaceRect(Pointer<SdlSurface> dst, Pointer<SdlRect> rect, int color)
→ bool
-
Perform a fast fill of a rectangle with a specific color.
-
sdlFillSurfaceRects(Pointer<SdlSurface> dst, Pointer<SdlRect> rects, int count, int color)
→ bool
-
Perform a fast fill of a set of rectangles with a specific color.
-
sdlFlipSurface(Pointer<SdlSurface> surface, int flip)
→ bool
-
Flip a surface vertically or horizontally.
-
sdlGetSurfaceAlphaMod(Pointer<SdlSurface> surface, Pointer<Uint8> alpha)
→ bool
-
Get the additional alpha value used in blit operations.
-
sdlGetSurfaceBlendMode(Pointer<SdlSurface> surface, Pointer<Uint32> blendMode)
→ bool
-
Get the blend mode used for blit operations.
-
sdlGetSurfaceClipRect(Pointer<SdlSurface> surface, Pointer<SdlRect> rect)
→ bool
-
Get the clipping rectangle for a surface.
-
sdlGetSurfaceColorKey(Pointer<SdlSurface> surface, Pointer<Uint32> key)
→ bool
-
Get the color key (transparent pixel) for a surface.
-
sdlGetSurfaceColorMod(Pointer<SdlSurface> surface, Pointer<Uint8> r, Pointer<Uint8> g, Pointer<Uint8> b)
→ bool
-
Get the additional color value multiplied into blit operations.
-
sdlGetSurfaceColorspace(Pointer<SdlSurface> surface)
→ int
-
Get the colorspace used by a surface.
-
sdlGetSurfaceImages(Pointer<SdlSurface> surface, Pointer<Int32> count)
→ Pointer<Pointer<SdlSurface>>
-
Get an array including all versions of a surface.
-
sdlGetSurfacePalette(Pointer<SdlSurface> surface)
→ Pointer<SdlPalette>
-
Get the palette used by a surface.
-
sdlGetSurfaceProperties(Pointer<SdlSurface> surface)
→ int
-
Get the properties associated with a surface.
-
sdlLoadBmp(String? file)
→ Pointer<SdlSurface>
-
Load a BMP image from a file.
-
sdlLoadBmpIo(Pointer<SdlIoStream> src, bool closeio)
→ Pointer<SdlSurface>
-
Load a BMP image from a seekable SDL data stream.
-
sdlLockSurface(Pointer<SdlSurface> surface)
→ bool
-
Set up a surface for directly accessing the pixels.
-
sdlMapSurfaceRgb(Pointer<SdlSurface> surface, int r, int g, int b)
→ int
-
Map an RGB triple to an opaque pixel value for a surface.
-
sdlMapSurfaceRgba(Pointer<SdlSurface> surface, int r, int g, int b, int a)
→ int
-
Map an RGBA quadruple to a pixel value for a surface.
-
sdlPremultiplyAlpha(int width, int height, int srcFormat, Pointer<NativeType> src, int srcPitch, int dstFormat, Pointer<NativeType> dst, int dstPitch, bool linear)
→ bool
-
Premultiply the alpha on a block of pixels.
-
sdlPremultiplySurfaceAlpha(Pointer<SdlSurface> surface, bool linear)
→ bool
-
Premultiply the alpha in a surface.
-
sdlReadSurfacePixel(Pointer<SdlSurface> surface, int x, int y, Pointer<Uint8> r, Pointer<Uint8> g, Pointer<Uint8> b, Pointer<Uint8> a)
→ bool
-
Retrieves a single pixel from a surface.
-
sdlReadSurfacePixelFloat(Pointer<SdlSurface> surface, int x, int y, Pointer<Float> r, Pointer<Float> g, Pointer<Float> b, Pointer<Float> a)
→ bool
-
Retrieves a single pixel from a surface.
-
sdlRemoveSurfaceAlternateImages(Pointer<SdlSurface> surface)
→ void
-
Remove all alternate versions of a surface.
-
sdlSaveBmp(Pointer<SdlSurface> surface, String? file)
→ bool
-
Save a surface to a file.
-
sdlSaveBmpIo(Pointer<SdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio)
→ bool
-
Save a surface to a seekable SDL data stream in BMP format.
-
sdlScaleSurface(Pointer<SdlSurface> surface, int width, int height, int scaleMode)
→ Pointer<SdlSurface>
-
Creates a new surface identical to the existing surface, scaled to the
desired size.
-
sdlSetSurfaceAlphaMod(Pointer<SdlSurface> surface, int alpha)
→ bool
-
Set an additional alpha value used in blit operations.
-
sdlSetSurfaceBlendMode(Pointer<SdlSurface> surface, int blendMode)
→ bool
-
Set the blend mode used for blit operations.
-
sdlSetSurfaceClipRect(Pointer<SdlSurface> surface, Pointer<SdlRect> rect)
→ bool
-
Set the clipping rectangle for a surface.
-
sdlSetSurfaceColorKey(Pointer<SdlSurface> surface, bool enabled, int key)
→ bool
-
Set the color key (transparent pixel) in a surface.
-
sdlSetSurfaceColorMod(Pointer<SdlSurface> surface, int r, int g, int b)
→ bool
-
Set an additional color value multiplied into blit operations.
-
sdlSetSurfaceColorspace(Pointer<SdlSurface> surface, int colorspace)
→ bool
-
Set the colorspace used by a surface.
-
sdlSetSurfacePalette(Pointer<SdlSurface> surface, Pointer<SdlPalette> palette)
→ bool
-
Set the palette used by a surface.
-
sdlSetSurfaceRle(Pointer<SdlSurface> surface, bool enabled)
→ bool
-
Set the RLE acceleration hint for a surface.
-
sdlSurfaceHasAlternateImages(Pointer<SdlSurface> surface)
→ bool
-
Return whether a surface has alternate versions available.
-
sdlSurfaceHasColorKey(Pointer<SdlSurface> surface)
→ bool
-
Returns whether the surface has a color key.
-
sdlSurfaceHasRle(Pointer<SdlSurface> surface)
→ bool
-
Returns whether the surface is RLE enabled.
-
sdlUnlockSurface(Pointer<SdlSurface> surface)
→ void
-
Release a surface after directly accessing the pixels.
-
sdlWriteSurfacePixel(Pointer<SdlSurface> surface, int x, int y, int r, int g, int b, int a)
→ bool
-
Writes a single pixel to a surface.
-
sdlWriteSurfacePixelFloat(Pointer<SdlSurface> surface, int x, int y, double r, double g, double b, double a)
→ bool
-
Writes a single pixel to a surface.