Struct RendererInfo

D struct that wraps SDL_RendererInfo containing renderer information

struct RendererInfo ;

Constructors

NameDescription
this (sdlRendererInfo) Constructs a dsdl2.RendererInfo from a vanilla SDL_RendererInfo from bindbc-sdl
this (name, textureFormats, maxTextureSize, software, accelerated, presentVSync, targetTexture) Constructs a dsdl2.RendererInfo by feeding it its attributes

Fields

NameTypeDescription
maxTextureSize uint[2]Maximum texture size
name stringName of the renderer
sdlFlags uintInternal SDL bitmask of supported renderer flags
textureFormats PixelFormat[]Available texture pixel formats

Properties

NameTypeDescription
accelerated[get] boolGets whether the dsdl2.RendererInfo has SDL_RENDERER_ACCELERATED flag
accelerated[set] boolSets whether the dsdl2.RendererInfo has SDL_RENDERER_ACCELERATED flag
maxTextureHeight[get] inout(uint)Proxy to the maximum texture height of the dsdl2.RendererInfo
maxTextureWidth[get] inout(uint)Proxy to the maximum texture width of the dsdl2.RendererInfo
presentVSync[get] boolGets whether the dsdl2.RendererInfo has SDL_RENDERER_PRESENTVSYNC flag
presentVSync[set] boolSets whether the dsdl2.RendererInfo has SDL_RENDERER_PRESENTVSYNC flag
sdlRendererInfo[get] inout(sdl.render.SDL_RendererInfo)Gets the internal SDL_RendererInfo representation
software[get] boolGets whether the dsdl2.RendererInfo has SDL_RENDERER_SOFTWARE flag
software[set] boolSets whether the dsdl2.RendererInfo has SDL_RENDERER_SOFTWARE flag
targetTexture[get] boolGets whether the dsdl2.RendererInfo has SDL_RENDERER_TARGETTEXTURE flag
targetTexture[set] boolSets whether the dsdl2.RendererInfo has SDL_RENDERER_TARGETTEXTURE flag

Methods

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