Debian Codegraph @

src/AO.h

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1
2 // class to compute ambient occlusion
3
4 class AO{
5 //private:
6 Point3f dir; // direction
7
8 vector<float> buf;
9 int bufx, bufy;
10 float bufscale;
11
12 inline int index(int x, int y){
13 int res=x+bufx*y;
14 if (res<0) res=0;
15 if (res>=buf.size()) res=buf.size()-1;
16 return res;
17 //return x+bufx*y;
18 }
19
20 void PrintBuffer();
21 void RenderSphere(float cx, float cy, float cz, float rad);
22 void CheckAtom(QAtom &a);
23
24 public:
25
26 AO( Point3f _dir, Mol &m);
27
28 };