Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
MyOpenGLView.h File Reference
+ Include dependency graph for MyOpenGLView.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MyOpenGLView
 

Macros

#define MAX_CLEAR_DEPTH   10000000000.0
 
#define INTERMEDIATE_CLEAR_DEPTH   100.0
 
#define MIN_FOV_DEG   30.0f
 
#define MAX_FOV_DEG   80.0f
 
#define MIN_FOV   (tan((MIN_FOV_DEG / 2) * M_PI / 180.0f))
 
#define MAX_FOV   (tan((MAX_FOV_DEG / 2) * M_PI / 180.0f))
 
#define NUM_KEYS   327
 
#define MOUSE_DOUBLE_CLICK_INTERVAL   0.40
 
#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL   0.05
 
#define OOMOUSEWHEEL_DELTA   1.0
 

Enumerations

enum  GameViewKeys {
  gvFunctionKey1 = 256 , gvFunctionKey2 , gvFunctionKey3 , gvFunctionKey4 ,
  gvFunctionKey5 , gvFunctionKey6 , gvFunctionKey7 , gvFunctionKey8 ,
  gvFunctionKey9 , gvFunctionKey10 , gvFunctionKey11 , gvArrowKeyRight ,
  gvArrowKeyLeft , gvArrowKeyDown , gvArrowKeyUp , gvPauseKey ,
  gvPrintScreenKey , gvMouseLeftButton = 301 , gvMouseDoubleClick , gvHomeKey ,
  gvEndKey , gvInsertKey , gvDeleteKey , gvPageUpKey ,
  gvPageDownKey , gvBackspaceKey , gvNumberKey0 = 48 , gvNumberKey1 ,
  gvNumberKey2 , gvNumberKey3 , gvNumberKey4 , gvNumberKey5 ,
  gvNumberKey6 , gvNumberKey7 , gvNumberKey8 , gvNumberKey9 ,
  gvNumberPadKey0 = 310 , gvNumberPadKey1 , gvNumberPadKey2 , gvNumberPadKey3 ,
  gvNumberPadKey4 , gvNumberPadKey5 , gvNumberPadKey6 , gvNumberPadKey7 ,
  gvNumberPadKey8 , gvNumberPadKey9 , gvNumberPadKeyDivide , gvNumberPadKeyMultiply ,
  gvNumberPadKeyMinus , gvNumberPadKeyPlus , gvNumberPadKeyPeriod , gvNumberPadKeyEquals ,
  gvNumberPadKeyEnter
}
 
enum  MouseWheelStatus { gvMouseWheelDown = -1 , gvMouseWheelNeutral , gvMouseWheelUp }
 
enum  StringInput { gvStringInputNo = 0 , gvStringInputAlpha = 1 , gvStringInputLoadSave = 2 , gvStringInputAll = 3 }
 

Variables

int debug
 

Macro Definition Documentation

◆ INTERMEDIATE_CLEAR_DEPTH

#define INTERMEDIATE_CLEAR_DEPTH   100.0

Definition at line 33 of file MyOpenGLView.h.

◆ MAX_CLEAR_DEPTH

#define MAX_CLEAR_DEPTH   10000000000.0

Definition at line 31 of file MyOpenGLView.h.

◆ MAX_FOV

#define MAX_FOV   (tan((MAX_FOV_DEG / 2) * M_PI / 180.0f))

Definition at line 39 of file MyOpenGLView.h.

◆ MAX_FOV_DEG

#define MAX_FOV_DEG   80.0f

Definition at line 37 of file MyOpenGLView.h.

◆ MIN_FOV

#define MIN_FOV   (tan((MIN_FOV_DEG / 2) * M_PI / 180.0f))

Definition at line 38 of file MyOpenGLView.h.

◆ MIN_FOV_DEG

#define MIN_FOV_DEG   30.0f

Definition at line 36 of file MyOpenGLView.h.

◆ MOUSE_DOUBLE_CLICK_INTERVAL

#define MOUSE_DOUBLE_CLICK_INTERVAL   0.40

Definition at line 42 of file MyOpenGLView.h.

◆ NUM_KEYS

#define NUM_KEYS   327

Definition at line 41 of file MyOpenGLView.h.

◆ OOMOUSEWHEEL_DELTA

#define OOMOUSEWHEEL_DELTA   1.0

Definition at line 44 of file MyOpenGLView.h.

◆ OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL

#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL   0.05

Definition at line 43 of file MyOpenGLView.h.

Enumeration Type Documentation

◆ GameViewKeys

Enumerator
gvFunctionKey1 
gvFunctionKey2 
gvFunctionKey3 
gvFunctionKey4 
gvFunctionKey5 
gvFunctionKey6 
gvFunctionKey7 
gvFunctionKey8 
gvFunctionKey9 
gvFunctionKey10 
gvFunctionKey11 
gvArrowKeyRight 
gvArrowKeyLeft 
gvArrowKeyDown 
gvArrowKeyUp 
gvPauseKey 
gvPrintScreenKey 
gvMouseLeftButton 
gvMouseDoubleClick 
gvHomeKey 
gvEndKey 
gvInsertKey 
gvDeleteKey 
gvPageUpKey 
gvPageDownKey 
gvBackspaceKey 
gvNumberKey0 
gvNumberKey1 
gvNumberKey2 
gvNumberKey3 
gvNumberKey4 
gvNumberKey5 
gvNumberKey6 
gvNumberKey7 
gvNumberKey8 
gvNumberKey9 
gvNumberPadKey0 
gvNumberPadKey1 
gvNumberPadKey2 
gvNumberPadKey3 
gvNumberPadKey4 
gvNumberPadKey5 
gvNumberPadKey6 
gvNumberPadKey7 
gvNumberPadKey8 
gvNumberPadKey9 
gvNumberPadKeyDivide 
gvNumberPadKeyMultiply 
gvNumberPadKeyMinus 
gvNumberPadKeyPlus 
gvNumberPadKeyPeriod 
gvNumberPadKeyEquals 
gvNumberPadKeyEnter 

Definition at line 48 of file MyOpenGLView.h.

49{
50
51 gvFunctionKey1 = 256,
55 gvFunctionKey5, // 260
65 gvArrowKeyUp, // 270
67 gvPrintScreenKey, // 272
76 gvBackspaceKey, // 309
77 gvNumberKey0 = 48,
86 gvNumberKey9, // 57
87 gvNumberPadKey0 = 310,
104};
@ gvNumberKey4
@ gvNumberPadKeyDivide
@ gvNumberPadKeyMultiply
@ gvNumberKey9
@ gvNumberKey5
@ gvMouseLeftButton
@ gvNumberPadKeyPeriod
@ gvFunctionKey2
@ gvBackspaceKey
@ gvInsertKey
@ gvNumberPadKeyPlus
@ gvNumberPadKey9
@ gvNumberPadKey1
@ gvFunctionKey10
@ gvFunctionKey5
@ gvDeleteKey
@ gvNumberKey2
@ gvArrowKeyDown
@ gvNumberPadKey2
@ gvFunctionKey9
@ gvNumberPadKey3
@ gvFunctionKey4
@ gvEndKey
@ gvNumberKey0
@ gvNumberKey7
@ gvMouseDoubleClick
@ gvHomeKey
@ gvNumberPadKeyEquals
@ gvNumberPadKey6
@ gvNumberPadKeyEnter
@ gvNumberPadKey5
@ gvNumberPadKey4
@ gvNumberKey8
@ gvNumberKey3
@ gvNumberKey6
@ gvPauseKey
@ gvNumberPadKeyMinus
@ gvNumberPadKey7
@ gvPrintScreenKey
@ gvFunctionKey11
@ gvFunctionKey8
@ gvNumberKey1
@ gvPageDownKey
@ gvNumberPadKey8
@ gvFunctionKey3
@ gvArrowKeyUp
@ gvArrowKeyRight
@ gvFunctionKey6
@ gvArrowKeyLeft
@ gvFunctionKey7
@ gvPageUpKey
@ gvNumberPadKey0
@ gvFunctionKey1

◆ MouseWheelStatus

Enumerator
gvMouseWheelDown 
gvMouseWheelNeutral 
gvMouseWheelUp 

Definition at line 106 of file MyOpenGLView.h.

107{
108 gvMouseWheelDown = -1,
111};
@ gvMouseWheelDown
@ gvMouseWheelNeutral
@ gvMouseWheelUp

◆ StringInput

Enumerator
gvStringInputNo 
gvStringInputAlpha 
gvStringInputLoadSave 
gvStringInputAll 

Definition at line 113 of file MyOpenGLView.h.

114{
115 gvStringInputNo = 0,
119};
@ gvStringInputAlpha
@ gvStringInputNo
@ gvStringInputLoadSave
@ gvStringInputAll

Variable Documentation

◆ debug

int debug
extern