Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
MyOpenGLView.h File Reference
import "OOCocoa.h"
import "OOOpenGL.h"
import "OOMouseInteractionMode.h"
import "OOOpenGLMatrixManager.h"
#include <SDL.h>
+ 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 WINDOW_SIZE_DEFAULT_WIDTH   1280
 
#define WINDOW_SIZE_DEFAULT_HEIGHT   720
 
#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 MIN_HDR_MAXBRIGHTNESS   400.0
 
#define MAX_HDR_MAXBRIGHTNESS   1000.0
 
#define MIN_HDR_PAPERWHITE   80.0f
 
#define MAX_HDR_PAPERWHITE   280.0f
 
#define MAX_COLOR_SATURATION   2.0f
 
#define MOUSEVIRTUALSTICKSENSITIVITYFACTOR   0.95f
 
#define MOUSEX_MAXIMUM   0.6
 
#define MOUSEY_MAXIMUM   0.6
 
#define MAX_CLEAR_DEPTH   10000000000.0
 
#define INTERMEDIATE_CLEAR_DEPTH   100.0
 
#define NUM_KEYS   327
 
#define MOUSE_DOUBLE_CLICK_INTERVAL   0.40
 
#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL   0.05
 
#define OOMOUSEWHEEL_DELTA   120
 
#define SNAPSHOTS_PNG_FORMAT   1
 
#define SNAPSHOTHDR_EXTENSION_EXR   @".exr"
 
#define SNAPSHOTHDR_EXTENSION_HDR   @".hdr"
 
#define SNAPSHOTHDR_EXTENSION_DEFAULT   SNAPSHOTHDR_EXTENSION_EXR
 

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 }
 
enum  KeyboardType { gvKeyboardAuto , gvKeyboardUS , gvKeyboardUK }
 

Variables

int debug
 

Macro Definition Documentation

◆ INTERMEDIATE_CLEAR_DEPTH

#define INTERMEDIATE_CLEAR_DEPTH   100.0

Definition at line 55 of file MyOpenGLView.h.

◆ MAX_CLEAR_DEPTH

#define MAX_CLEAR_DEPTH   10000000000.0

Definition at line 53 of file MyOpenGLView.h.

◆ MAX_COLOR_SATURATION

#define MAX_COLOR_SATURATION   2.0f

Definition at line 47 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.

◆ MAX_HDR_MAXBRIGHTNESS

#define MAX_HDR_MAXBRIGHTNESS   1000.0

Definition at line 42 of file MyOpenGLView.h.

◆ MAX_HDR_PAPERWHITE

#define MAX_HDR_PAPERWHITE   280.0f

Definition at line 45 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.

◆ MIN_HDR_MAXBRIGHTNESS

#define MIN_HDR_MAXBRIGHTNESS   400.0

Definition at line 41 of file MyOpenGLView.h.

◆ MIN_HDR_PAPERWHITE

#define MIN_HDR_PAPERWHITE   80.0f

Definition at line 44 of file MyOpenGLView.h.

◆ MOUSE_DOUBLE_CLICK_INTERVAL

#define MOUSE_DOUBLE_CLICK_INTERVAL   0.40

Definition at line 60 of file MyOpenGLView.h.

◆ MOUSEVIRTUALSTICKSENSITIVITYFACTOR

#define MOUSEVIRTUALSTICKSENSITIVITYFACTOR   0.95f

Definition at line 49 of file MyOpenGLView.h.

◆ MOUSEX_MAXIMUM

#define MOUSEX_MAXIMUM   0.6

Definition at line 50 of file MyOpenGLView.h.

◆ MOUSEY_MAXIMUM

#define MOUSEY_MAXIMUM   0.6

Definition at line 51 of file MyOpenGLView.h.

◆ NUM_KEYS

#define NUM_KEYS   327

Definition at line 59 of file MyOpenGLView.h.

◆ OOMOUSEWHEEL_DELTA

#define OOMOUSEWHEEL_DELTA   120

Definition at line 62 of file MyOpenGLView.h.

◆ OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL

#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL   0.05

Definition at line 61 of file MyOpenGLView.h.

◆ SNAPSHOTHDR_EXTENSION_DEFAULT

#define SNAPSHOTHDR_EXTENSION_DEFAULT   SNAPSHOTHDR_EXTENSION_EXR

Definition at line 67 of file MyOpenGLView.h.

◆ SNAPSHOTHDR_EXTENSION_EXR

#define SNAPSHOTHDR_EXTENSION_EXR   @".exr"

Definition at line 65 of file MyOpenGLView.h.

◆ SNAPSHOTHDR_EXTENSION_HDR

#define SNAPSHOTHDR_EXTENSION_HDR   @".hdr"

Definition at line 66 of file MyOpenGLView.h.

◆ SNAPSHOTS_PNG_FORMAT

#define SNAPSHOTS_PNG_FORMAT   1

Definition at line 64 of file MyOpenGLView.h.

◆ WINDOW_SIZE_DEFAULT_HEIGHT

#define WINDOW_SIZE_DEFAULT_HEIGHT   720

Definition at line 34 of file MyOpenGLView.h.

◆ WINDOW_SIZE_DEFAULT_WIDTH

#define WINDOW_SIZE_DEFAULT_WIDTH   1280

Definition at line 33 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 71 of file MyOpenGLView.h.

72{
73 gvFunctionKey1 = 256,
77 gvFunctionKey5, // 260
87 gvArrowKeyUp, // 270
89 gvPrintScreenKey, // 272
97 gvPageDownKey, // 308
98 gvBackspaceKey, // 309
99 gvNumberKey0 = 48,
108 gvNumberKey9, //57
109 gvNumberPadKey0 = 310,
126};
@ 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

◆ KeyboardType

Enumerator
gvKeyboardAuto 
gvKeyboardUS 
gvKeyboardUK 

Definition at line 143 of file MyOpenGLView.h.

144{
148};
@ gvKeyboardUS
@ gvKeyboardUK
@ gvKeyboardAuto

◆ MouseWheelStatus

Enumerator
gvMouseWheelDown 
gvMouseWheelNeutral 
gvMouseWheelUp 

Definition at line 128 of file MyOpenGLView.h.

129{
130 gvMouseWheelDown = -1,
133};
@ gvMouseWheelDown
@ gvMouseWheelNeutral
@ gvMouseWheelUp

◆ StringInput

Enumerator
gvStringInputNo 
gvStringInputAlpha 
gvStringInputLoadSave 
gvStringInputAll 

Definition at line 135 of file MyOpenGLView.h.

136{
137 gvStringInputNo = 0,
141};
@ gvStringInputAlpha
@ gvStringInputNo
@ gvStringInputLoadSave
@ gvStringInputAll

Variable Documentation

◆ debug

int debug
extern