RendererInfo

D struct that wraps SDL_RendererInfo containing renderer information

Constructors

this
this()
Undocumented in source.
this
this(SDL_RendererInfo sdlRendererInfo)

Constructs a dsdl2.RendererInfo from a vanilla SDL_RendererInfo from bindbc-sdl

this
this(string name, PixelFormat[] textureFormats, uint[2] maxTextureSize, bool software, bool accelerated, bool presentVSync, bool targetTexture)

Constructs a dsdl2.RendererInfo by feeding it its attributes

Members

Functions

accelerated
bool accelerated()

Gets whether the dsdl2.RendererInfo has SDL_RENDERER_ACCELERATED flag

accelerated
void accelerated(bool value)

Sets whether the dsdl2.RendererInfo has SDL_RENDERER_ACCELERATED flag

maxTextureHeight
inout(uint) maxTextureHeight()

Proxy to the maximum texture height of the dsdl2.RendererInfo

maxTextureWidth
inout(uint) maxTextureWidth()

Proxy to the maximum texture width of the dsdl2.RendererInfo

presentVSync
bool presentVSync()

Gets whether the dsdl2.RendererInfo has SDL_RENDERER_PRESENTVSYNC flag

presentVSync
void presentVSync(bool value)

Sets whether the dsdl2.RendererInfo has SDL_RENDERER_PRESENTVSYNC flag

sdlRendererInfo
inout(SDL_RendererInfo) sdlRendererInfo()

Gets the internal SDL_RendererInfo representation

software
bool software()

Gets whether the dsdl2.RendererInfo has SDL_RENDERER_SOFTWARE flag

software
void software(bool value)

Sets whether the dsdl2.RendererInfo has SDL_RENDERER_SOFTWARE flag

targetTexture
bool targetTexture()

Gets whether the dsdl2.RendererInfo has SDL_RENDERER_TARGETTEXTURE flag

targetTexture
void targetTexture(bool value)

Sets whether the dsdl2.RendererInfo has SDL_RENDERER_TARGETTEXTURE flag

toString
string toString()

Formats the dsdl2.RendererInfo into its construction representation: "dsdl2.RendererInfo(<name>, <textureFormats>, <maxTextureSize>, <flag> : <value> ...)"

Variables

maxTextureSize
uint[2] maxTextureSize;

Maximum texture size

name
string name;

Name of the renderer

sdlFlags
uint sdlFlags;

Internal SDL bitmask of supported renderer flags

textureFormats
PixelFormat[] textureFormats;

Available texture pixel formats

Meta