Creates a new centered window with specified title and flags on a 800x480 resolution.
Creates a new centered window with specified dimensions, title and flags.
Creates a new window with specified parameters.
Closes the window and invalidates it.
Displays rendered content to the window.
Closes the window and invalidates it.
Raises the window to top and focuses it for input.
Hides the window.
Maximizes the window.
Minimizes the window.
Polls a event from the stack and returns true if one was found.
Pushes WindowEvent.Quit to the event stack.
Restores the window state from minimized or maximized.
Sets the icon to a Btimap.
Shows the window if hidden.
Dynamically sets the height of the window.
Dynamically gets the height of the window.
Dynamically sets the maximum height of the window.
Dynamically gets the maximum height of the window.
Dynamically sets the maximum width of the window.
Dynamically gets the maximum width of the window.
Dynamically sets the minimum height of the window.
Dynamically gets the minimum height of the window.
Dynamically sets the minimum width of the window.
Dynamically gets the minimum width of the window.
Returns if the is still open.
Texture containing rendered content.
Dynamically sets the title of the window.
Dynamically gets the title of the window.
Returns if the window is still open.
Dynamically sets the width of the window.
Dynamically gets the width of the window.
Dynamically sets the x position of the window.
Dynamically gets the x position of the window.
Dynamically sets the y position of the window.
Dynamically gets the y position of the window.
Static variable to a SDL GL Context.
Function for checking if this is valid.
Function for deallocating memory. Should be called in destructor.
Set active container.
Resize the container texture to the new width and height.
Create a container texture in the given resolution.
Clears the container texture by calling bind() -> glClearColor(r, g, b, 1) -> glClear(GL_COLOR_BUFFER_BIT).
Draws drawable using optional shader onto this. This will call drawable.draw(this, shader); If shader is null, ShaderProgram.default is gonna be used.
Draws raw geometry to the container texture using an optional shader. If shader is null, ShaderProgram.default is gonna be used.
Returns the result of the container texture.
Window window = new Window(800, 600, "Unittest"); assert(window.valid); assert(window.title == "Unittest"); window.title = "Window Title"; assert(window.title == "Window Title"); // Automatic conversion from c-strings to D-strings assert(window.width == 800); window.close(); assert(!window.valid);
Single-Window class wrapping SDL_Window.