|
wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
|
3-D camera definition (Z-up, right-handed world coordinate system). More...
#include <bgi_types.h>
Data Fields | ||
| std::string | assignedSceneName {"default"} | |
| Name of the DDS scene graph this camera renders. Defaults to "default". Set with wxbgi_cam_set_scene(). | ||
| struct { | ||
| int count {3} | ||
| number of circles (1..8) More... | ||
| bool enabled {false} | ||
| float innerRadius {25.f} | ||
| world-unit radius of innermost circle More... | ||
| float outerRadius {100.f} | ||
| world-unit radius of outermost circle More... | ||
| } | concentricOverlay | |
| Concentric circles + crosshair overlay. | ||
| float | eyeX {0.f} | |
| float | eyeY {-10.f} | |
| float | eyeZ {5.f} | |
| float | farPlane {10000.f} | |
| float | fovYDeg {45.f} | |
| bool | is2D {false} | |
| float | nearPlane {0.1f} | |
| float | orthoBottom {0.f} | |
| float | orthoLeft {0.f} | |
| float | orthoRight {0.f} | |
| float | orthoTop {0.f} | |
| float | pan2dX {0.f} | |
| float | pan2dY {0.f} | |
| CameraProjection | projection {CameraProjection::Orthographic} | |
| float | rot2dDeg {0.f} | |
| struct { | ||
| int colorScheme {0} | ||
| 0 = blue, 1 = green, 2 = red More... | ||
| bool enabled {false} | ||
| int sizePx {8} | ||
| square side length, pixels (2..16) More... | ||
| } | selCursorOverlay | |
| Selection cursor square overlay (moves with the mouse in this viewport). | ||
| float | targetX {0.f} | |
| float | targetY {0.f} | |
| float | targetZ {0.f} | |
| float | upX {0.f} | |
| float | upY {0.f} | |
| float | upZ {1.f} | |
| int | vpH {0} | |
| int | vpW {0} | |
| int | vpX {0} | |
| int | vpY {0} | |
| float | worldHeight2d {2.f} | |
| Visible world-units height used by 2-D cameras and auto-ortho. | ||
| float | zoom2d {1.f} | |
3-D camera definition (Z-up, right-handed world coordinate system).
The camera stores both full 3-D eye/target/up parameters and a 2-D convenience layer (pan/zoom/rotation) for overhead/plan-view cameras. When is2D is true, the 2-D fields drive the view and projection matrices; otherwise the explicit 3-D and ortho fields are used.
All camera instances live in BgiState::cameras keyed by name. A camera named "default" is created automatically on initwindow() and replicates the classic BGI pixel-space coordinate system.
| std::string bgi::Camera3D::assignedSceneName {"default"} |
Name of the DDS scene graph this camera renders. Defaults to "default". Set with wxbgi_cam_set_scene().
| int bgi::Camera3D::colorScheme {0} |
0 = blue, 1 = green, 2 = red
| struct { ... } bgi::Camera3D::concentricOverlay |
Concentric circles + crosshair overlay.
| int bgi::Camera3D::count {3} |
number of circles (1..8)
| bool bgi::Camera3D::enabled {false} |
| float bgi::Camera3D::eyeX {0.f} |
| float bgi::Camera3D::eyeY {-10.f} |
| float bgi::Camera3D::eyeZ {5.f} |
| float bgi::Camera3D::farPlane {10000.f} |
| float bgi::Camera3D::fovYDeg {45.f} |
| float bgi::Camera3D::innerRadius {25.f} |
world-unit radius of innermost circle
| bool bgi::Camera3D::is2D {false} |
| float bgi::Camera3D::nearPlane {0.1f} |
| float bgi::Camera3D::orthoBottom {0.f} |
| float bgi::Camera3D::orthoLeft {0.f} |
| float bgi::Camera3D::orthoRight {0.f} |
| float bgi::Camera3D::orthoTop {0.f} |
| float bgi::Camera3D::outerRadius {100.f} |
world-unit radius of outermost circle
| float bgi::Camera3D::pan2dX {0.f} |
| float bgi::Camera3D::pan2dY {0.f} |
| CameraProjection bgi::Camera3D::projection {CameraProjection::Orthographic} |
| float bgi::Camera3D::rot2dDeg {0.f} |
| struct { ... } bgi::Camera3D::selCursorOverlay |
Selection cursor square overlay (moves with the mouse in this viewport).
| int bgi::Camera3D::sizePx {8} |
square side length, pixels (2..16)
| float bgi::Camera3D::targetX {0.f} |
| float bgi::Camera3D::targetY {0.f} |
| float bgi::Camera3D::targetZ {0.f} |
| float bgi::Camera3D::upX {0.f} |
| float bgi::Camera3D::upY {0.f} |
| float bgi::Camera3D::upZ {1.f} |
| int bgi::Camera3D::vpH {0} |
| int bgi::Camera3D::vpW {0} |
| int bgi::Camera3D::vpX {0} |
| int bgi::Camera3D::vpY {0} |
| float bgi::Camera3D::worldHeight2d {2.f} |
Visible world-units height used by 2-D cameras and auto-ortho.
| float bgi::Camera3D::zoom2d {1.f} |