Texture.this

Constructs a dsdl2.Texture from a vanilla SDL_Texture* from bindbc-sdl

  1. this(SDL_Texture* sdlTexture, bool isOwner, void* userRef)
    class Texture
    @system
    this
    (
    SDL_Texture* sdlTexture
    ,
    bool isOwner = true
    ,
    void* userRef = null
    )
  2. this(Renderer renderer, PixelFormat pixelFormat, TextureAccess access, uint[2] size)
  3. this(Renderer renderer, Surface surface)

Parameters

sdlTexture SDL_Texture*

the SDL_Texture pointer to manage

isOwner bool

whether the instance owns the given SDL_Texture* and should destroy it on its own

userRef void*

optional pointer to maintain reference link, avoiding GC cleanup

Meta