loadRaw - multiple declarations

Function loadRaw

Wraps IMG_Load_RW which loads an image from a data buffer into a software dsdl2.Surface

Surface loadRaw (
  const(void[]) data
) @trusted;

Parameters

NameDescription
data data buffer of the image

Returns

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load the image

Function loadRaw

Wraps IMG_LoadTyped_RW which loads a typed image from a data buffer into a software dsdl2.Surface

Surface loadRaw (
  const(void[]) data,
  string type
) @trusted;

Parameters

NameDescription
data data buffer of the image
type specified type of the image

Returns

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load the image