summaryrefslogtreecommitdiff
path: root/cad/plugins/QuteMol/qutemol/src/HardSettings.h
blob: 05335914a449893fe2bd3809210fa0965d09e5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// HARD SETTINGS:
// Settings affecting performance / quality ratio

const int NNAMES=24;

class HardSettings{
public:
  int TSIZE; // total texture size
  int MAX_TSIZE;  // max texture size

  int N_VIEW_DIR;
 

  int SHADOWMAP_SIZE;  // texture size for shadowmap
  int AOSM_SIZE;      // texture size for shadowmmaps for AO computation
  
  int NVIDIA_PATCH;
  
  int MOVING_QUALITY;
  int STILL_QUALITY;
  
  // if true, use double ShadomMap optimization
  int doubleSM;
  
  int SNAP_SIZE;
  int SNAP_ANTIALIAS;
  
  int PNG_TRANSPARENT;

  // GIF animation settings
  int GIF_SNAP_SIZE;
  int GIF_INITIAL_PAUSE;
  int GIF_ANIMATION_MODE;
  
  int GIF_ROT_N_FRAMES;
  int GIF_ROT_MSEC;
  int GIF_ROT_SIDEVIEW_ANGLE;
  
  int GIF_INSP_N_FRAMES;
  int GIF_INSP_MSEC;
  int GIF_INSP_ANGLE;
  
  int GIF_6SIDES_N_FRAMES;
  int GIF_6SIDES_MSEC;
  int GIF_6SIDES_PAUSE;
  
  void SetDefaults();
  bool Load(char *fn);
  bool Save(char *fn);
  bool OnStart(); // tries to load, on faliure setdefaults and saves
  HardSettings();
private:
  int* data[NNAMES];
};

extern HardSettings hardSettings; // SINGLETON