Author Topic: Potential bug: FXGLCone needs HAVE_GL_H or HAVE_GLU_H?  (Read 1171 times)

Trinagle

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Potential bug: FXGLCone needs HAVE_GL_H or HAVE_GLU_H?
« on: February 18, 2020, 04:19:46 AM »
Some background: We're trying to update the rendering code in our application. We want to use GLAD, and stick to modern OpenGL functions only (no fixed pipeline) which would let us use better graphics debugging tools. One requirement is to make FXGLContext create and use an OpenGL "core" context - https://www.khronos.org/opengl/wiki/OpenGL_Context#Context_types

Now I noticed that if I use HAVE_GL_H, but not HAVE_GLU_H, the classes FXGLCone, FXGLCylinder and FXGLSphere fail to compile. Their drawshape() functions use glu, but only checks #ifdef HAVE_GL_H. Is this intentional?