PixelFormat.this

Constructs a dsdl2.PixelFormat from a vanilla SDL_PixelFormat* from bindbc-sdl

  1. this(SDL_PixelFormat* sdlPixelFormat, bool isOwner, void* userRef)
    class PixelFormat
    @system
    this
    (
    SDL_PixelFormat* sdlPixelFormat
    ,
    bool isOwner = true
    ,
    void* userRef = null
    )
  2. this(SDL_PixelFormatEnum sdlPixelFormatEnum)
  3. this(SDL_PixelFormatEnum sdlPixelFormatEnum, Palette palette)
  4. this(ubyte bitsPerPixel, uint[4] rgbaMasks)

Parameters

sdlPixelFormat SDL_PixelFormat*

the SDL_PixelFormat pointer to manage

isOwner bool

whether the instance owns the given SDL_PixelFormat* and should destroy it on its own

userRef void*

optional pointer to maintain reference link, avoiding GC cleanup

Meta