title: How to draw a 3D super-ellipse with OpenGL in c++
body: <p>For creating a 3D Sphere with OpenGL in C++, I use this function:</p>
  
  <pre><code>glutWireSphere(GLdouble radius, GLint slices, GLint stacks);
  </code></pre>
  
  <p>My code runs very well and shows a wire sphere rotating.<br>
  But I don't know how to write a function that draws a super-ellipse.  </p>
  
  <p>I know the formula of a super-ellipse:</p>
  
  <p><img src="https://i.stack.imgur.com/6779y.png" alt="super-ellipse"></p>
  
  <p>How can I draw a 3D super-ellipse using this formula?</p>