viewport saved as a static variable

This commit is contained in:
Gerhard Kitzler 2012-10-29 17:52:31 +00:00
parent 6988af4222
commit 8e2759e25a
2 changed files with 5 additions and 3 deletions

View File

@ -56,6 +56,7 @@ namespace netgen
int VisualScene :: selecttimestamp; int VisualScene :: selecttimestamp;
int VisualScene :: viewport[4];
VisualizationParameters :: VisualizationParameters() VisualizationParameters :: VisualizationParameters()
{ {

View File

@ -26,6 +26,7 @@ namespace netgen
static float transmat[16]; static float transmat[16];
static float rotmat[16]; static float rotmat[16];
static float centermat[16]; static float centermat[16];
static DLL_HEADER float transformationmat[16]; static DLL_HEADER float transformationmat[16];
GLdouble clipplane[4]; GLdouble clipplane[4];
@ -43,7 +44,7 @@ namespace netgen
static int selecttimestamp; static int selecttimestamp;
public: public:
static int viewport[4];
// static GLubyte * colortexture; // static GLubyte * colortexture;
static GLuint coltexname; static GLuint coltexname;
static int ntexcols; static int ntexcols;
@ -83,7 +84,7 @@ namespace netgen
DLL_HEADER void DrawCoordinateCross (); DLL_HEADER void DrawCoordinateCross ();
DLL_HEADER void DrawNetgenLogo (); DLL_HEADER void DrawNetgenLogo ();
DLL_HEADER void SetOpenGlColor(double val, double valmin, double valmax, int logscale = 0); DLL_HEADER void SetOpenGlColor(double val, double valmin, double valmax, int logscale = 0);
#ifdef PARALLELGL #ifdef PARALLELGL
DLL_HEADER void InitParallelGL (); DLL_HEADER void InitParallelGL ();
@ -92,7 +93,7 @@ namespace netgen
}; };
extern void MyOpenGLText (const char * text); DLL_HEADER extern void MyOpenGLText (const char * text);