← Back to team overview

yade-users team mailing list archive

Re: glutInit() problem.

 

On Mon, 2006-06-26 at 14:33 +0200, Janek Kozicki wrote:
> Janek Kozicki said:     (by the date of Mon, 26 Jun 2006 12:26:52 +0200)
> 
> 
> > in file:
> > 
> > yade-packages/yade-package-common/src/RenderingEngine/OpenGLRenderingEngine/OpenGLRenderingEngine.cpp
> > 
> > 
> >  void OpenGLRenderingEngine::render(const shared_ptr<MetaBody>& rootBody)
> >  {
> > +       static bool initDone=false;
> > +       if(!initDone)
> > +       {
> > +               int a=1;
> > +               char* b="./yade";
> > +               glutInit(&a,&b);
> > +               initDone=true;
> > +       }
> > +
> >         const GLfloat pos[4]    = {lightPos[0],lightPos[1],lightPos[2],1.0};
> >         const GLfloat ambientColor[4]   = {0.5,0.5,0.5,1.0};
> > 
> 
> do you have working hardware 3D acceleration? what says this command:
> 
>    glxinfo | grep render
> 
> does glxgears launched from terminal, work?
> 
> 

wait, let me try again, but now I have to leave for my class.
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
http://lists.berlios.de/mailman/listinfo/yade-users



Follow ups

References