video.glvideodriver

OpenGL 2 video driver.

abstract class GLVideoDriver: video.videodriver.VideoDriver;

OpenGL 2.x based video driver.

Most of the actual drawing is done by GLRenderer, GLVideoDriver basically manages other GL video classes.

Signal:
package mixin Signal!(Statistics) sendStatistics
Used to send statistics data to GL monitors.

protected uint screenWidth_;

Video mode width in pixels.

protected uint screenHeight_;

Video mode height in pixels.

protected uint screenDepth_;

Video mode bit depth.

this(FontManager fontManager, VFSDir gameDir);

Construct a GLVideoDriver.

Parameters:
FontManager fontManager Font manager to use for font rendering and management.
VFSDir gameDir Game data directory.
Throws:
VFSException if the shader directory (shaders/) was not found in gameDir.
package final void drawPage(const uint pageIndex, ref const Rectf area, ref const Rectf quad);

Debugging:
draw specified area of a texture page on the specified quad.

protected final void initGL();

Initialize OpenGL context.

Throws:
VideoDriverException on failure.