Window.surface - multiple declarations

Function Window.surface

Wraps SDL_GetWindowSurface which gets the window's surface for software rendering

inout inout(Surface) surface() @property @trusted;

Returns

dsdl2.Surface proxy to the window's surface

Throws

dsdl2.SDLException if failed to get the window's surface

Function Window.surface

Wraps SDL_DestroyWindowSurface (from SDL 2.28) which destructs the underlying associated surface of the window

void surface (
  typeof(null) _
) @property @trusted;

Throws

dsdl2.SDLException if failed to destruct the surface