While publicly importing arsd.simpledisplay is not actually necessary, most real-world code would eventually import said module as well anyway.
Legacy OpenGL (1.x) renderer implementation
OpenGL 3.0 implementation of a PixmapRenderer
Pixmap Presenter window
Scaling/Fit Modes
Calculates the dimensions and position of the viewport for the provided config.
Calls glViewport with the data from the provided Viewport.
Renderer abstraction
Pixmap Presenter is a high-level display library for one specific scenario: Blitting fully-rendered frames to the screen.
This is useful for software-rendered applications. Think of old-skool games, emulators etc.
This library builds upon arsd.simpledisplay and arsd.color. It wraps a SimpleWindow and displays the provided frame data. Each frame is automatically centered on, and optionally scaled to, the carrier window. This processing is done with hardware acceleration (OpenGL). Later versions might add a software-mode.
Several scaling modes are supported. Most notably contain that scales pixmaps to the window’s current size while preserving the original aspect ratio. See Scaling for details.
Usage examples
Basic usage
This example displays a blue frame that increases in color intensity, then jumps back to black and the process repeats.
Minimal example
Advanced example