Renderer.this

Constructs a dsdl2.Renderer from a vanilla SDL_Renderer* from bindbc-sdl

  1. this(SDL_Renderer* sdlRenderer, bool isOwner, void* userRef)
    class Renderer
    @system
    this
    (
    SDL_Renderer* sdlRenderer
    ,
    bool isOwner = true
    ,
    void* userRef = null
    )
  2. this(Window window, RenderDriver renderDriver, bool software, bool accelerated, bool presentVSync, bool targetTexture)
  3. this(Surface surface)

Parameters

sdlRenderer SDL_Renderer*

the SDL_Renderer pointer to manage

isOwner bool

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

userRef void*

optional pointer to maintain reference link, avoiding GC cleanup

Meta