Class OverlayRenderer: Render various bits of data that overlay the game world (selection circles, health bars, etc).
More...
#include <OverlayRenderer.h>
|
static const float | OVERLAY_VOFFSET = 0.2f |
| Small vertical offset of overlays from terrain to prevent visual glitches. More...
|
|
Class OverlayRenderer: Render various bits of data that overlay the game world (selection circles, health bars, etc).
◆ OverlayRenderer()
OverlayRenderer::OverlayRenderer |
( |
| ) |
|
◆ ~OverlayRenderer()
OverlayRenderer::~OverlayRenderer |
( |
| ) |
|
◆ EndFrame()
void OverlayRenderer::EndFrame |
( |
| ) |
|
Reset the list of submitted overlays.
◆ Initialize()
void OverlayRenderer::Initialize |
( |
| ) |
|
Performs one-time initialization.
Called by CRenderer::Open after graphics capabilities and the shader path have been determined.
◆ NONCOPYABLE()
◆ PrepareForRendering()
void OverlayRenderer::PrepareForRendering |
( |
| ) |
|
Prepare internal data structures for rendering.
Must be called after all Submit calls for a frame, and before uploading data.
◆ RenderForegroundOverlays()
Render all the submitted overlays that should appear on top of everything in the world.
- Parameters
-
viewCamera | camera to be used for billboard computations |
◆ RenderOverlaysAfterWater()
Render all the submitted overlays that are embedded in the world (i.e.
rendered behind other objects in the normal 3D way) and should be drawn after water (i.e. may be visible on top of the water)
◆ RenderOverlaysBeforeWater()
Render all the submitted overlays that are embedded in the world (i.e.
rendered behind other objects in the normal 3D way) and should be drawn before water (i.e. may be visible under the water)
◆ RenderQuadOverlays()
Helper method; batch-renders all registered quad overlays, batched by their texture for effiency.
◆ RenderSphereOverlays()
Helper method; batch-renders all sphere quad overlays.
◆ RenderTexturedOverlayLines() [1/2]
Helper method; renders all overlay lines currently registered in the internals.
Batch- renders textured overlay lines batched according to their visibility status by delegating to RenderTexturedOverlayLines(IShaderProgram, bool).
◆ RenderTexturedOverlayLines() [2/2]
Helper method; renders those overlay lines currently registered in the internals (i.e.
in m->texlines) for which the 'always visible' flag equals alwaysVisible
. Used for batch rendering the overlay lines according to their alwaysVisible status, as this requires a separate shader to be used.
◆ Submit() [1/5]
Add a line overlay for rendering in this frame.
- Parameters
-
overlay | Must be non-null. The pointed-to object must remain valid at least until the end of the frame. |
◆ Submit() [2/5]
Add a textured quad overlay for rendering in this frame.
- Parameters
-
overlay | Must be non-null. The pointed-to object must remain valid at least until the end of the frame. |
◆ Submit() [3/5]
Add a sphere overlay for rendering in this frame.
- Parameters
-
overlay | Must be non-null. The pointed-to object must remain valid at least until the end of the frame. |
◆ Submit() [4/5]
Add a sprite overlay for rendering in this frame.
- Parameters
-
overlay | Must be non-null. The pointed-to object must remain valid at least until the end of the frame. |
◆ Submit() [5/5]
Add a textured line overlay for rendering in this frame.
- Parameters
-
overlay | Must be non-null. The pointed-to object must remain valid at least until the end of the frame. |
◆ Upload()
Upload prepared data to backend.
Must be called after preparing, and before any rendering calls.
◆ OVERLAY_VOFFSET
const float OverlayRenderer::OVERLAY_VOFFSET = 0.2f |
|
static |
Small vertical offset of overlays from terrain to prevent visual glitches.
The documentation for this class was generated from the following files: