Menu

How to use openGL/GLUT

2003-01-31
2012-09-26
  • Nobody/Anonymous

    I just got the latest version of Dev-C++ and relatively new to it (been using DJGPP). I was wondering how to be able to use openGL/GLUT with it in a source file. Do I need to download something, if so where? Is it already included, if so how do include GLUT or openGL headers.

                                          Thanks

     
    • Nobody/Anonymous

      I'm not exactly sure what you want to know but the OpenGL includes you'll probably want are:

      #include <gl/gl.h>
      #include <gl/glu.h>
      #include <gl/glaux.h>

      and you need to set the linker under Project Options to include:

      -lopengl32 -lglu32 -lglut32 -lglaux

      That is, assuming you've got the OGL libraries.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.