Surface.this

Constructs a dsdl2.Surface from a vanilla SDL_Surface* from bindbc-sdl

Parameters

sdlSurface SDL_Surface*

the SDL_Surface pointer to manage

isOwner bool

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

userRef void*

optional pointer to maintain reference link, avoiding GC cleanup

Meta