wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Variables
bgi Namespace Reference

Data Structures

struct  arccoordstype
 
struct  BgiState
 
struct  Camera3D
 3-D camera definition (Z-up, right-handed world coordinate system). More...
 
struct  ColorRGB
 
struct  CoordSystem
 A named user coordinate system (UCS). More...
 
struct  fillsettingstype
 
struct  GlLineVertex
 One vertex in a GL depth-tested line batch (world-space, 6 floats). More...
 
struct  GlVertex
 One vertex in a GL solid triangle batch (world-space, 9 floats). More...
 
struct  ImageHeader
 
struct  LightState
 Lighting parameters used by the GL Phong shading passes. More...
 
struct  linesettingstype
 
struct  MouseClickEvent
 
struct  OverlayGridState
 State for the reference grid overlay. More...
 
struct  OverlayUcsAxesState
 State for the UCS axes overlay. More...
 
struct  palettetype
 
struct  PendingGlFrame
 Per-camera GL frame queued by wxbgi_render_dds() in wxEmbedded mode. More...
 
struct  PendingGlRender
 Geometry accumulated for a single wxbgi_render_dds() call. More...
 
struct  textsettingstype
 
struct  viewporttype
 
struct  WorldExtents
 Axis-aligned bounding box (AABB) representing the programmer's declared drawing extents in world space. More...
 

Typedefs

using MouseHandler = void(BGI_CALL *)(int, int)
 

Enumerations

enum class  CameraProjection { Orthographic = 0 , Perspective = 1 }
 Projection mode for a Camera3D. More...
 
enum  GraphStatus {
  grOk = 0 , grNoInitGraph = -1 , grNotDetected = -2 , grFileNotFound = -3 ,
  grInvalidDriver = -4 , grNoLoadMem = -5 , grNoScanMem = -6 , grNoFloodMem = -7 ,
  grFontNotFound = -8 , grNoFontMem = -9 , grInvalidMode = -10 , grError = -11 ,
  grIOerror = -12 , grInvalidFont = -13 , grInvalidFontNum = -14 , grInvalidVersion = -18 ,
  grInitFailed = -19 , grWindowClosed = -20 , grInvalidInput = -21 , grDuplicateName = -22
}
 

Variables

constexpr int AND_PUT = 3
 
constexpr int BKSLASH_FILL = 5
 
constexpr int BLACK = 0
 
constexpr int BLUE = 1
 
constexpr int BOTTOM_TEXT = 0
 
constexpr int BROWN = 6
 
constexpr int CENTER_LINE = 2
 
constexpr int CENTER_TEXT = 1
 
constexpr int CLOSE_DOT_FILL = 11
 
constexpr int COPY_PUT = 0
 
constexpr int CYAN = 3
 
constexpr int DARKGRAY = 8
 
constexpr int DASHED_LINE = 3
 
constexpr int DEFAULT_FONT = 0
 
constexpr int DETECT = 0
 
constexpr int DOTTED_LINE = 1
 
constexpr int EMPTY_FILL = 0
 
constexpr int GOTHIC_FONT = 8
 
constexpr int GREEN = 2
 
constexpr int HATCH_FILL = 7
 
constexpr int HORIZ_DIR = 0
 
constexpr int INTERLEAVE_FILL = 9
 
const ColorRGB kBgiPalette [kPaletteSize]
 
constexpr int kDefaultHeight = 720
 
constexpr int kDefaultWidth = 960
 
constexpr int kExtColorBase = 16
 first user-assignable extended colour index
 
constexpr int kExtPaletteSize = 240
 extended slots 16-255 (fits uint8_t pixel buffer)
 
constexpr int kPageCount = 2
 
constexpr int kPaletteSize = 16
 classic BGI palette slots (0-15)
 
constexpr int kPatternCols = 8
 
constexpr int kPatternRows = 8
 
constexpr int kSelectionOrangeColor = 252
 Reserved extended-palette slot — selection flash orange.
 
constexpr int kSelectionPurpleColor = 253
 Reserved extended-palette slot — selection flash purple.
 
constexpr int LEFT_TEXT = 0
 
constexpr int LIGHTBLUE = 9
 
constexpr int LIGHTCYAN = 11
 
constexpr int LIGHTGRAY = 7
 
constexpr int LIGHTGREEN = 10
 
constexpr int LIGHTMAGENTA = 13
 
constexpr int LIGHTRED = 12
 
constexpr int LINE_FILL = 2
 
constexpr int LTBKSLASH_FILL = 6
 
constexpr int LTSLASH_FILL = 3
 
constexpr int MAGENTA = 5
 
constexpr int NORM_WIDTH = 1
 
constexpr int NOT_PUT = 4
 
constexpr int OR_PUT = 2
 
constexpr int RED = 4
 
constexpr int RIGHT_TEXT = 2
 
constexpr int SANS_SERIF_FONT = 4
 
constexpr int SLASH_FILL = 4
 
constexpr int SMALL_FONT = 2
 
constexpr int SOLID_FILL = 1
 
constexpr int SOLID_LINE = 0
 
constexpr int THICK_WIDTH = 3
 
constexpr int TOP_TEXT = 2
 
constexpr int TRIPLEX_FONT = 1
 
constexpr int USER_FILL = 12
 
constexpr int USERBIT_LINE = 4
 
constexpr int VERT_DIR = 1
 
constexpr int WHITE = 15
 
constexpr int WIDE_DOT_FILL = 10
 
constexpr int XHATCH_FILL = 8
 
constexpr int XOR_PUT = 1
 
constexpr int YELLOW = 14
 

Typedef Documentation

◆ MouseHandler

using bgi::MouseHandler = typedef void(BGI_CALL *)(int, int)

Enumeration Type Documentation

◆ CameraProjection

enum class bgi::CameraProjection
strong

Projection mode for a Camera3D.

Enumerator
Orthographic 
Perspective 

◆ GraphStatus

Enumerator
grOk 
grNoInitGraph 
grNotDetected 
grFileNotFound 
grInvalidDriver 
grNoLoadMem 
grNoScanMem 
grNoFloodMem 
grFontNotFound 
grNoFontMem 
grInvalidMode 
grError 
grIOerror 
grInvalidFont 
grInvalidFontNum 
grInvalidVersion 
grInitFailed 
grWindowClosed 
grInvalidInput 
grDuplicateName 

A camera or UCS with that name already exists.

Variable Documentation

◆ AND_PUT

constexpr int bgi::AND_PUT = 3
constexpr

◆ BKSLASH_FILL

constexpr int bgi::BKSLASH_FILL = 5
constexpr

◆ BLACK

constexpr int bgi::BLACK = 0
constexpr

◆ BLUE

constexpr int bgi::BLUE = 1
constexpr

◆ BOTTOM_TEXT

constexpr int bgi::BOTTOM_TEXT = 0
constexpr

◆ BROWN

constexpr int bgi::BROWN = 6
constexpr

◆ CENTER_LINE

constexpr int bgi::CENTER_LINE = 2
constexpr

◆ CENTER_TEXT

constexpr int bgi::CENTER_TEXT = 1
constexpr

◆ CLOSE_DOT_FILL

constexpr int bgi::CLOSE_DOT_FILL = 11
constexpr

◆ COPY_PUT

constexpr int bgi::COPY_PUT = 0
constexpr

◆ CYAN

constexpr int bgi::CYAN = 3
constexpr

◆ DARKGRAY

constexpr int bgi::DARKGRAY = 8
constexpr

◆ DASHED_LINE

constexpr int bgi::DASHED_LINE = 3
constexpr

◆ DEFAULT_FONT

constexpr int bgi::DEFAULT_FONT = 0
constexpr

◆ DETECT

constexpr int bgi::DETECT = 0
constexpr

◆ DOTTED_LINE

constexpr int bgi::DOTTED_LINE = 1
constexpr

◆ EMPTY_FILL

constexpr int bgi::EMPTY_FILL = 0
constexpr

◆ GOTHIC_FONT

constexpr int bgi::GOTHIC_FONT = 8
constexpr

◆ GREEN

constexpr int bgi::GREEN = 2
constexpr

◆ HATCH_FILL

constexpr int bgi::HATCH_FILL = 7
constexpr

◆ HORIZ_DIR

constexpr int bgi::HORIZ_DIR = 0
constexpr

◆ INTERLEAVE_FILL

constexpr int bgi::INTERLEAVE_FILL = 9
constexpr

◆ kBgiPalette

const ColorRGB bgi::kBgiPalette[kPaletteSize]
extern

◆ kDefaultHeight

constexpr int bgi::kDefaultHeight = 720
constexpr

◆ kDefaultWidth

constexpr int bgi::kDefaultWidth = 960
constexpr

◆ kExtColorBase

constexpr int bgi::kExtColorBase = 16
constexpr

first user-assignable extended colour index

◆ kExtPaletteSize

constexpr int bgi::kExtPaletteSize = 240
constexpr

extended slots 16-255 (fits uint8_t pixel buffer)

◆ kPageCount

constexpr int bgi::kPageCount = 2
constexpr

◆ kPaletteSize

constexpr int bgi::kPaletteSize = 16
constexpr

classic BGI palette slots (0-15)

◆ kPatternCols

constexpr int bgi::kPatternCols = 8
constexpr

◆ kPatternRows

constexpr int bgi::kPatternRows = 8
constexpr

◆ kSelectionOrangeColor

constexpr int bgi::kSelectionOrangeColor = 252
constexpr

Reserved extended-palette slot — selection flash orange.

◆ kSelectionPurpleColor

constexpr int bgi::kSelectionPurpleColor = 253
constexpr

Reserved extended-palette slot — selection flash purple.

◆ LEFT_TEXT

constexpr int bgi::LEFT_TEXT = 0
constexpr

◆ LIGHTBLUE

constexpr int bgi::LIGHTBLUE = 9
constexpr

◆ LIGHTCYAN

constexpr int bgi::LIGHTCYAN = 11
constexpr

◆ LIGHTGRAY

constexpr int bgi::LIGHTGRAY = 7
constexpr

◆ LIGHTGREEN

constexpr int bgi::LIGHTGREEN = 10
constexpr

◆ LIGHTMAGENTA

constexpr int bgi::LIGHTMAGENTA = 13
constexpr

◆ LIGHTRED

constexpr int bgi::LIGHTRED = 12
constexpr

◆ LINE_FILL

constexpr int bgi::LINE_FILL = 2
constexpr

◆ LTBKSLASH_FILL

constexpr int bgi::LTBKSLASH_FILL = 6
constexpr

◆ LTSLASH_FILL

constexpr int bgi::LTSLASH_FILL = 3
constexpr

◆ MAGENTA

constexpr int bgi::MAGENTA = 5
constexpr

◆ NORM_WIDTH

constexpr int bgi::NORM_WIDTH = 1
constexpr

◆ NOT_PUT

constexpr int bgi::NOT_PUT = 4
constexpr

◆ OR_PUT

constexpr int bgi::OR_PUT = 2
constexpr

◆ RED

constexpr int bgi::RED = 4
constexpr

◆ RIGHT_TEXT

constexpr int bgi::RIGHT_TEXT = 2
constexpr

◆ SANS_SERIF_FONT

constexpr int bgi::SANS_SERIF_FONT = 4
constexpr

◆ SLASH_FILL

constexpr int bgi::SLASH_FILL = 4
constexpr

◆ SMALL_FONT

constexpr int bgi::SMALL_FONT = 2
constexpr

◆ SOLID_FILL

constexpr int bgi::SOLID_FILL = 1
constexpr

◆ SOLID_LINE

constexpr int bgi::SOLID_LINE = 0
constexpr

◆ THICK_WIDTH

constexpr int bgi::THICK_WIDTH = 3
constexpr

◆ TOP_TEXT

constexpr int bgi::TOP_TEXT = 2
constexpr

◆ TRIPLEX_FONT

constexpr int bgi::TRIPLEX_FONT = 1
constexpr

◆ USER_FILL

constexpr int bgi::USER_FILL = 12
constexpr

◆ USERBIT_LINE

constexpr int bgi::USERBIT_LINE = 4
constexpr

◆ VERT_DIR

constexpr int bgi::VERT_DIR = 1
constexpr

◆ WHITE

constexpr int bgi::WHITE = 15
constexpr

◆ WIDE_DOT_FILL

constexpr int bgi::WIDE_DOT_FILL = 10
constexpr

◆ XHATCH_FILL

constexpr int bgi::XHATCH_FILL = 8
constexpr

◆ XOR_PUT

constexpr int bgi::XOR_PUT = 1
constexpr

◆ YELLOW

constexpr int bgi::YELLOW = 14
constexpr