VideoDevice

Manages windowing and GL and provides access to convenience OpenGL wrappers.

Constructors

this
this(Logger log)

Construct a VideoDevice with specified OpenGL drawing to window.

Destructor

~this
~this()

Destroy the VideoDevice. Must be called by the user (use e.g. scoped!).

Members

Functions

gl
OpenGL gl()

Get access to the OpenGL API.

height
long height()

Get window height.

initGL
bool initGL()

Initialize the OpenGL context.

initWindow
bool initWindow(size_t width, size_t height, Flag!"fullscreen" fullscreen)

Initialize the GL window.

resizeViewport
void resizeViewport(int width, int height)

Resize the viewport.

swapBuffers
void swapBuffers()

Swap the front and back buffer at the end of a frame.

width
long width()

Get window width.

windowTitle
void windowTitle(string rhs)

Set the main window title. Any characters past 1023 will be truncated.

Meta