Merge branch 'oculus-rift' into gl2-lensflare
Merge commit 'f4ebe216f28e8b9b8ad27c2b7ef03c5411cc9655' into gl2-lensflare
Fixed|libcommon: Warnings about signed/unsigned comparisons
Documentation|libgui: Improved GLState apidocs
Renderer: Disabled old code for halo/flare rendering completely

The objective of this branch is to recreate halo/flare rendering
using GL2.

After that is done, we should evaluate how to integrate it into the
resource management system (or how the resource management system
can co-operate with libgui; probably mostly at the level of locating
the right images to use for the flares).

The terminology should be clarified: a "halo" is the lit 3D volume
around a light source. It is most visible in fog. A "flare" is a
lens flare occurring inside the camera lens(es).
Merge branch 'oculus-rift' into gl2-lensflare
Cleanup
Merge branch 'oculus-rift' into gl2-lensflare
Merge branch 'oculus-rift' into gl2-lensflare
Refactor|Client|Server: Split client-specific code from r_main.cpp

Most of r_main.cpp is client-specific, so all of that was moved to
render/viewports.cpp.
Refactor|Renderer: Separated view border from player 3D view layer

For future reasons: the main 3D layer could go through a shader for
effects.
Refactor|libcommon: Unified view port drawing, moved crosshair to HUD layer

Also, in Oculus Rift mode, don’t assume that automap covers the full
view.
Renderer: Added stub for camera lens effects

cameralensfx is (will be) responsible for frame post-processing and
overlaid effects such as color filter, vignette, and lens flares.
Refactor|Renderer: Object-oriented camera lens effects

Added ConsoleEffect classes for the color filter and vignette.
Renderer: Added console effect for lens flares

fx::LensFlares instances use a shared data instance for common GL
resources: texture atlas for flare images and a shader program. This
commit sets up the basic mechanism using de::Counted.
libdeng2: Added template for creating shared, reference-counted objects

de::Shared automatically creates and destroys the shared payload type
when acquiring and releasing references to the shared data.
Cleanup

Using de::Shared.
Cleanup
Client: Removed the “rend-info-tris” cvar

IssueID #723
libgui: Resizing a GLTarget

Internally, this will replace attached texture contents using the
same image format as was used previously. Render buffers’ storage
size is redefined.