Surface.this

Constructs a blank RGB(A) dsdl2.Surface with a set width, height, and dsdl2.PixelFormat that wraps SDL_CreateRGBSurface

Parameters

size uint[2]

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

rgbPixelFormat PixelFormat

an RGB(A) dsdl2.PixelFormat

Throws

dsdl2.SDLException if allocation failed

Meta