SDL2Surface.this

Create a new RGBA surface. Both pixels data and handle are owned.

  1. this(SDL2 sdl2, SDL_Surface* surface, Owned owned)
  2. this(SDL2 sdl2, int width, int height, int depth, uint Rmask, uint Gmask, uint Bmask, uint Amask)
    class SDL2Surface
    this
    (,
    int width
    ,
    int height
    ,
    int depth
    ,
    uint Rmask
    ,
    uint Gmask
    ,
    uint Bmask
    ,
    uint Amask
    )
  3. this(SDL2 sdl2, void* pixels, int width, int height, int depth, int pitch, uint Rmask, uint Gmask, uint Bmask, uint Amask)

Throws

SDL2Exception on error.

See Also

Meta