Surface.this

Constructs an RGB(A) dsdl2.Surface from an array of pixels

Parameters

pixels void[]

array of pixel data (copied internally)

size uint[2]

size (width and height) of the dsdl2.Surface in pixels

pitch size_t

skips in bytes per line/row of the dsdl2.Surface

rgbPixelFormat PixelFormat

an RGB(A) dsdl2.PixelFormat

Throws

dsdl2.SDLException if allocation failed

Meta