added callback funtions

This commit is contained in:
Nico Pietroni 2004-05-17 15:27:16 +00:00
parent bc793e067a
commit 2a7f401e6a
1 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ public:
enum ColorMode {CMNone, CMPerMesh,CMUser,CMPerTetraF,CMPerVertexF,CMPerVertex};
enum Hint {HShrinkFactor};
};
template <typename CONT_TETRA>
class GLWrapTetra:public GLW{
public:
@ -46,7 +47,7 @@ public:
template <DrawMode dm,NormalMode nm,ColorMode cm >
void Draw(){
void Draw(){
switch (dm){
case DMNone: break;
case DMSmallTetra: _DrawSmallTetra<cm>();break;
@ -57,6 +58,7 @@ public:
case DMTransparent:break;
}
}
private:
template <ColorMode cm >
void _DrawSmallTetra(){