Window.surface

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

  1. inout(Surface) surface()
  2. void surface(typeof(null) _)
    class Window
    @property @trusted
    static if(sdlSupport >= SDLSupport.v2_28)
    void
    surface
    (
    typeof(null) _
    )

Throws

dsdl2.SDLException if failed to destruct the surface

Meta