summaryrefslogtreecommitdiff
path: root/cad/plugins/QuteMol/qutemol/src/AOgpu.h
blob: 6c2d86a79190a2dde56851dcf3655bddff3e1c7e (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

class AOgpu{
//private:
  Point3f dir; // direction
  void CheckAtom(QAtom &a);

  static vector<Byte> fakeTexture;
  static vector<unsigned int> snap;
  
  static vector<int> sum;
  static unsigned int div;
  static float areas; // expected area coverage of a 1 radius sphere
  
  int snapx, snapy;
  
  void OpenGLSnap();
  bool SavePPM( const char * filename );
  
  static unsigned int mask;
public:

static void Reset(Mol &m);

AOgpu( Point3f _dir, Mol &m);

static void GetFinalTexture(vector<Byte> &text, Mol &m);

};