The OpenD Programming Language

PixmapPresenter

Pixmap Presenter window

A high-level window class that displays fully-rendered frames in the form of Pixmaps. The pixmap will be centered and (optionally) scaled.

Constructors

this
this(PresenterConfig config, bool useOpenGl)
this
this(PresenterConfig config, PixmapRenderer renderer)
this
this(string title, Size resolution, Size initialWindowSize, Scaling scaling, ScalingFilter filter)
this
this(string title, Size resolution, Scaling scaling, ScalingFilter filter)

Members

Aliases

framebuffer
alias framebuffer = pixmap

The Pixmap to be presented.

Functions

eventLoop
int eventLoop(long pulseTimeout, void delegate() onPulse, T eventHandlers)

Runs the event loop (with a pulse timer)

eventLoop
int eventLoop(T eventHandlers)

Runs the event loop

eventLoop
int eventLoop(LoopCtrl delegate() callback, T eventHandlers)

Runs the event loop with LoopCtrl timing mechanism

isFullscreen
bool isFullscreen()
void isFullscreen(bool enabled)

Fullscreen mode

onWindowResize
void onWindowResize(WindowResizedCallback value)

Event handler: window resize

pixmap
Pixmap pixmap()

The Pixmap to be presented.

reconfigure
void reconfigure(PresenterConfig config, bool resizeWindow)

Updates the configuration of the presenter.

scheduleRedraw
void scheduleRedraw()

Schedules a redraw

tinkerRenderer
PixmapRenderer tinkerRenderer()

Returns the underlying PixmapRenderer

tinkerWindow
SimpleWindow tinkerWindow()

Returns the underlying SimpleWindow

toggleFullscreen
void toggleFullscreen()

Toggles the fullscreen state of the window.

Meta