Renderer.this - multiple declarations

Function Renderer.this

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

this (
  sdl.render.SDL_Renderer* sdlRenderer,
  bool isOwner = true,
  void* userRef = null
);

Parameters

NameDescription
sdlRenderer the SDL_Renderer pointer to manage
isOwner whether the instance owns the given SDL_Renderer* and should destroy it on its own
userRef optional pointer to maintain reference link, avoiding GC cleanup

Function Renderer.this

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

this (
  Window window,
  const(RenderDriver) renderDriver = null,
  bool software = false,
  bool accelerated = false,
  bool presentVSync = false,
  bool targetTexture = false
) @trusted;

Parameters

NameDescription
window target dsdl2.Window for the renderer to draw onto which must not have a surface associated
renderDriver the dsdl2.RenderDriver to use; null to use the default
software adds SDL_RENDERER_SOFTWARE flag
accelerated adds SDL_RENDERER_ACCELERATED flag
presentVSync adds SDL_RENDERER_PRESENTVSYNC flag
targetTexture adds SDL_RENDERER_TARGETTEXTURE flag

Throws

dsdl2.SDLException if creation failed

Function Renderer.this

Creates a software dsdl2.Renderer that renders to a target surface, which wraps SDL_CreateSoftwareRenderer

this (
  Surface surface
) @trusted;

Parameters

NameDescription
surface dsdl2.Surface to be the target of rendering

Throws

dsdl2.SDLException if creation failed