added callback funtions
This commit is contained in:
parent
bc793e067a
commit
2a7f401e6a
|
@ -14,6 +14,7 @@ public:
|
||||||
enum ColorMode {CMNone, CMPerMesh,CMUser,CMPerTetraF,CMPerVertexF,CMPerVertex};
|
enum ColorMode {CMNone, CMPerMesh,CMUser,CMPerTetraF,CMPerVertexF,CMPerVertex};
|
||||||
enum Hint {HShrinkFactor};
|
enum Hint {HShrinkFactor};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename CONT_TETRA>
|
template <typename CONT_TETRA>
|
||||||
class GLWrapTetra:public GLW{
|
class GLWrapTetra:public GLW{
|
||||||
public:
|
public:
|
||||||
|
@ -46,7 +47,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
template <DrawMode dm,NormalMode nm,ColorMode cm >
|
template <DrawMode dm,NormalMode nm,ColorMode cm >
|
||||||
void Draw(){
|
void Draw(){
|
||||||
switch (dm){
|
switch (dm){
|
||||||
case DMNone: break;
|
case DMNone: break;
|
||||||
case DMSmallTetra: _DrawSmallTetra<cm>();break;
|
case DMSmallTetra: _DrawSmallTetra<cm>();break;
|
||||||
|
@ -57,6 +58,7 @@ public:
|
||||||
case DMTransparent:break;
|
case DMTransparent:break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template <ColorMode cm >
|
template <ColorMode cm >
|
||||||
void _DrawSmallTetra(){
|
void _DrawSmallTetra(){
|
||||||
|
|
Loading…
Reference in New Issue