| 1 |
|
| 2 |
extern bool validView(Point3f p); |
| 3 |
|
| 4 |
class ShadowMap{ |
| 5 |
//private: |
| 6 |
public: |
| 7 |
Mol &m; |
| 8 |
public: |
| 9 |
void computeAsTexture(vcg::Point3f L, bool makeboth, MyCanvas &canvas); |
| 10 |
bool init(); |
| 11 |
bool initHalo(); |
| 12 |
|
| 13 |
|
| 14 |
// adapt to current PVMatrix |
| •15 |
static void GetCurrentPVMatrix(); |
| 16 |
|
| 17 |
// feed parametmers to FP |
| 18 |
static void FeedParameters(); |
| 19 |
|
| 20 |
static void Update(); |
| 21 |
|
| 22 |
ShadowMap(Mol &_m) : m( _m ){ |
| 23 |
} |
| 24 |
}; |
| 25 |
|
| 26 |
|
| 27 |
class AOgpu2{ |
| 28 |
public: |
| 29 |
|
| 30 |
static bool init(); |
| 31 |
|
| 32 |
static void Reset(Mol &m); |
| 33 |
static void Bind(); |
| 34 |
|
| 35 |
AOgpu2( Point3f _dir, Mol &m, int nviews); |
| 36 |
|
| 37 |
static void UnBind(); |
| 38 |
|
| 39 |
}; |
| 40 |
|
| 41 |
//extern unsigned int finalFrame; // frame dove metto l'immagine finale! 0 se lo schermo. |
| 42 |
|
| 43 |
//bool createOffsetFrame(uint &frameID, uint &textureID, int screensize, int flags); |
| 44 |
|