title: glutDisplayFunc() with pointer to memeber functions
body: <p>I have a C++ class that contains the draw function that I want to pass to glutDisplayFunc(). glutDisplayFunc takes a function pointer (void (*)() ) as its argument. I have tried :</p>
  
  <pre><code>    Model myModel(pathToTextures);
      //Model contains the Draw function that draws the vertices and the textures
      std::function&lt;void(void)&gt; myfunc=std::bind(&amp;Mymodel::Draw,&amp;modelna);
  
      glutDisplayFunc(myfunc);
  </code></pre>
  
  <p>the compiler cannot convert the std::function pointer to the required.
   how can I bypass this hurdle of member function pointer? </p>