Renderer.this

Creates a hardware dsdl2.Renderer that renders to a dsdl2.Window, which wraps SDL_CreateRenderer

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

Parameters

window Window

target dsdl2.Window for the renderer to draw onto which must not have a surface associated

renderDriver RenderDriver

the dsdl2.RenderDriver to use; null to use the default

software bool

adds SDL_RENDERER_SOFTWARE flag

accelerated bool

adds SDL_RENDERER_ACCELERATED flag

presentVSync bool

adds SDL_RENDERER_PRESENTVSYNC flag

targetTexture bool

adds SDL_RENDERER_TARGETTEXTURE flag

Throws

dsdl2.SDLException if creation failed

Meta