wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Namespaces | Functions
bgi_overlay.h File Reference

Internal declarations for the visual overlay system. More...

#include "bgi_types.h"
#include <string>
Include dependency graph for bgi_overlay.h:

Go to the source code of this file.

Namespaces

namespace  bgi
 

Functions

void bgi::drawOverlaysForCamera (const std::string &camName, const Camera3D &cam)
 Draw all active overlays for one camera viewport.
 
void bgi::drawSelectionCursorsGL ()
 Draw selection cursor squares for all cameras that have the cursor enabled.
 
void bgi::overlayPerformPick (int screenX, int screenY, bool multiSelect)
 Handle a left-click pick event.
 

Detailed Description

Internal declarations for the visual overlay system.

Visual overlays are non-DDS, non-selectable rendering aids drawn fresh every frame. They are not serialised to DDJ/DDY and cannot be picked by the selection cursor.

Grid and UCS axes are global (visible in every camera viewport when enabled) and are drawn by drawOverlaysForCamera(), which is called from wxbgi_render_dds() after the DDS scene traversal and before flushToScreen().

Concentric circles + crosshair are per-camera and are also drawn by drawOverlaysForCamera().

Selection cursor square is drawn as an OpenGL GL_LINE_LOOP by drawSelectionCursorsGL(), which is called from flushToScreen() after the pixel-buffer rendering pass and before glFlush(), so it always appears on top of everything else.