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

extern bool validView(Point3f p);

class ShadowMap{
//private: 
public:
  Mol &m;
public:
  void computeAsTexture(vcg::Point3f L, bool makeboth, MyCanvas &canvas);
  bool init();
  bool initHalo();
  
  
  // adapt to current PVMatrix
  static void ShadowMap::GetCurrentPVMatrix();
  
  // feed parametmers to FP
  static void FeedParameters();
  
  static void Update();
  
  ShadowMap(Mol &_m) : m( _m ){
  }
};


class AOgpu2{
public: 
  
static bool init();

static void Reset(Mol &m);
static void Bind();

AOgpu2( Point3f _dir, Mol &m, int nviews);

static void UnBind();

};

//extern unsigned int finalFrame; // frame dove metto l'immagine finale! 0 se lo schermo.

//bool createOffsetFrame(uint &frameID, uint &textureID, int screensize, int flags);