sdl2/generated/lib_sdl_surface
library
Functions
-
sdlConvertPixels(int width, int height, int srcFormat, Pointer<NativeType> src, int srcPitch, int dstFormat, Pointer<NativeType> dst, int dstPitch)
→ int
-
Copy a block of pixels of one format to another format.
-
sdlConvertSurface(Pointer<SdlSurface> src, Pointer<SdlPixelFormat> fmt, int flags)
→ Pointer<SdlSurface>
-
Copy an existing surface to a new surface of the specified format.
-
sdlConvertSurfaceFormat(Pointer<SdlSurface> src, int pixelFormat, int flags)
→ Pointer<SdlSurface>
-
Copy an existing surface to a new surface of the specified format enum.
-
sdlCreateRgbSurface(int flags, int width, int height, int depth, int rmask, int gmask, int bmask, int amask)
→ Pointer<SdlSurface>
-
Allocate a new RGB surface.
-
sdlCreateRgbSurfaceFrom(Pointer<NativeType> pixels, int width, int height, int depth, int pitch, int rmask, int gmask, int bmask, int amask)
→ Pointer<SdlSurface>
-
Allocate a new RGB surface with existing pixel data.
-
sdlCreateRgbSurfaceWithFormat(int flags, int width, int height, int depth, int format)
→ Pointer<SdlSurface>
-
Allocate a new RGB surface with a specific pixel format.
-
sdlCreateRgbSurfaceWithFormatFrom(Pointer<NativeType> pixels, int width, int height, int depth, int pitch, int format)
→ Pointer<SdlSurface>
-
Allocate a new RGB surface with with a specific pixel format and existing
pixel data.
-
sdlDuplicateSurface(Pointer<SdlSurface> surface)
→ Pointer<SdlSurface>
-
Creates a new surface identical to the existing surface.
-
sdlFillRect(Pointer<SdlSurface> dst, Pointer<SdlRect> rect, int color)
→ int
-
Perform a fast fill of a rectangle with a specific color.
-
sdlFillRects(Pointer<SdlSurface> dst, Pointer<SdlRect> rects, int count, int color)
→ int
-
Perform a fast fill of a set of rectangles with a specific color.
-
sdlFreeSurface(Pointer<SdlSurface> surface)
→ void
-
Free an RGB surface.
-
sdlGetClipRect(Pointer<SdlSurface> surface, Pointer<SdlRect> rect)
→ void
-
Get the clipping rectangle for a surface.
-
sdlGetColorKey(Pointer<SdlSurface> surface, Pointer<Uint32> key)
→ int
-
Get the color key (transparent pixel) for a surface.
-
sdlGetSurfaceAlphaMod(Pointer<SdlSurface> surface, Pointer<Uint8> alpha)
→ int
-
Get the additional alpha value used in blit operations.
-
sdlGetSurfaceBlendMode(Pointer<SdlSurface> surface, Pointer<Int32> blendMode)
→ int
-
Get the blend mode used for blit operations.
-
sdlGetSurfaceColorMod(Pointer<SdlSurface> surface, Pointer<Uint8> r, Pointer<Uint8> g, Pointer<Uint8> b)
→ int
-
Get the additional color value multiplied into blit operations.
-
sdlGetYuvConversionMode()
→ int
-
Get the YUV conversion mode
-
sdlGetYuvConversionModeForResolution(int width, int height)
→ int
-
Get the YUV conversion mode, returning the correct mode for the resolution
when the current conversion mode is SDL_YUV_CONVERSION_AUTOMATIC
-
sdlHasColorKey(Pointer<SdlSurface> surface)
→ bool
-
Returns whether the surface has a color key
-
sdlHasSurfaceRle(Pointer<SdlSurface> surface)
→ bool
-
Returns whether the surface is RLE enabled
-
sdlLoadBmpRw(Pointer<SdlRWops> src, int freesrc)
→ Pointer<SdlSurface>
-
Load a BMP image from a seekable SDL data stream.
-
sdlLockSurface(Pointer<SdlSurface> surface)
→ int
-
Set up a surface for directly accessing the pixels.
-
sdlLowerBlit(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ int
-
Perform low-level surface blitting only.
-
sdlLowerBlitScaled(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ int
-
Perform low-level surface scaled blitting only.
-
sdlPremultiplyAlpha(int width, int height, int srcFormat, Pointer<NativeType> src, int srcPitch, int dstFormat, Pointer<NativeType> dst, int dstPitch)
→ int
-
Premultiply the alpha on a block of pixels.
-
sdlSaveBmpRw(Pointer<SdlSurface> surface, Pointer<SdlRWops> dst, int freedst)
→ int
-
Save a surface to a seekable SDL data stream in BMP format.
-
sdlSetClipRect(Pointer<SdlSurface> surface, Pointer<SdlRect> rect)
→ bool
-
Set the clipping rectangle for a surface.
-
sdlSetColorKey(Pointer<SdlSurface> surface, int flag, int key)
→ int
-
Set the color key (transparent pixel) in a surface.
-
sdlSetSurfaceAlphaMod(Pointer<SdlSurface> surface, int alpha)
→ int
-
Set an additional alpha value used in blit operations.
-
sdlSetSurfaceBlendMode(Pointer<SdlSurface> surface, int blendMode)
→ int
-
Set the blend mode used for blit operations.
-
sdlSetSurfaceColorMod(Pointer<SdlSurface> surface, int r, int g, int b)
→ int
-
Set an additional color value multiplied into blit operations.
-
sdlSetSurfacePalette(Pointer<SdlSurface> surface, Pointer<SdlPalette> palette)
→ int
-
Set the palette used by a surface.
-
sdlSetSurfaceRle(Pointer<SdlSurface> surface, int flag)
→ int
-
Set the RLE acceleration hint for a surface.
-
sdlSetYuvConversionMode(int mode)
→ void
-
Set the YUV conversion mode
-
sdlSoftStretch(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ int
-
Perform a fast, low quality, stretch blit between two surfaces of the same
format.
-
sdlSoftStretchLinear(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ int
-
Perform bilinear scaling between two surfaces of the same format, 32BPP.
-
sdlUnlockSurface(Pointer<SdlSurface> surface)
→ void
-
Release a surface after directly accessing the pixels.
-
sdlUpperBlit(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ int
-
Perform a fast blit from the source surface to the destination surface.
-
sdlUpperBlitScaled(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect, Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)
→ int
-
Perform a scaled surface copy to a destination surface.