← Back to team overview

yade-dev team mailing list archive

Re: r1542 static variables

 

> Fixed OpenGL problems with displaying spheres, which
>  - never occurred on my desktop
>  - I've seen them sometimes on other peoples computers, but never could reproduce them
>  - but finally have appeared on my laptop.
>
> Everyone: those static variables in GL*Sphere* classes have to be static, don't change that.
>   
It is you who changed that, in 1054:

svn blame
pkg/common/RenderingEngine/GLDrawGeometricalModel/GLDrawSphere.hpp                                    
<

[...]
   794    galizzi
   369    galizzi class GLDrawSphere : public GLDrawGeometricalModelFunctor
   369    galizzi {
   937    cosurgi       private :
  1054    cosurgi               bool first;
  1054    cosurgi               vector<Vector3r> vertices;
  1054    cosurgi               vector<Vector3r> faces;
  1054    cosurgi               int glWiredSphereList;
  1054    cosurgi               int glSphereList;
   937    cosurgi               void subdivideTriangle(Vector3r&
v1,Vector3r& v2,Vector3r& v3, int depth);
   937    cosurgi               void drawSphere(int depth);
  1287    cosurgi               void drawCircle(bool filled);
  1286    cosurgi               void clearGlMatrix();
  1404    eudoxos               static bool glutUse, glutNormalize;
  1404    eudoxos               static int glutSlices, glutStacks;
  1404    eudoxos
   937    cosurgi       public :
[...]


Oh, BTW for the TCP console, you connect to it by "telnet localhost
9001" and finish with ^D.

Vaclav



References