Renderer.this - multiple declarations
Function Renderer.this
Constructs a dsdl2
from a vanilla SDL_Renderer*
from bindbc-sdl
this
(
sdl .render .SDL_Renderer* sdlRenderer,
bool isOwner = true,
void* userRef = null
);
Parameters
Name | Description |
---|---|
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
that renders to a dsdl2
, 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
Name | Description |
---|---|
window | target dsdl2 for the renderer to draw onto which must not have a surface associated |
renderDriver | the dsdl2 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
if creation failed
Function Renderer.this
Creates a software dsdl2
that renders to a target surface, which wraps SDL_CreateSoftwareRenderer
Parameters
Name | Description |
---|---|
surface | dsdl2 to be the target of rendering |
Throws
dsdl2
if creation failed