Find the answer to your Linux question:
Results 1 to 6 of 6
I want to start progrmming in opengl. I am using Ubuntu. do I need just to install a GLUT package.if yes how to do it...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    22

    starting programming using OpenGL


    I want to start progrmming in opengl. I am using Ubuntu. do I need just to install a GLUT package.if yes how to do it

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    That depends on whether your learning material uses GLUT.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    22
    yes it uses GLUT what do I do next?

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Location
    Southport, England
    Posts
    31
    Install the packages 'freeglut' and 'freeglut-devel' using apt-get (I think!).

    EDIT: also, as some food for thought, if you're thinking of using C++ with GLUT, don't. It isn't possible (or is very difficult to do, possibly using generics) to register callbacks that GLUT uses which belong to C++ namespaces/classes, for example:

    Code:
    ...
    
    class Bob
    {
       void doStuff()
       {
          cout << "Doing stuff" << endl;
       }
    }
    
    ...
    
    int main()
    {
       // GLUT init functions here
       glutIdleFunc(Bob::doStuff);
    }
    (Hope that code is correct!) Unfortunately it just wont work.

  5. #5
    Just Joined!
    Join Date
    May 2010
    Posts
    22
    thanks for the support . But what is the difference between glut,glu,glx??????

  6. #6
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    GLX is the low-level interface from OpenGL to XWindow. When you wish to display OpenGL graphics on UNIX or GNU/Linux, this library is always necessary. But you don't have to work with it directly but can use a wrapper (convenience) library instead.

    GLU is a convenience library which contains some useful helper functions that you usually wish to use.

    GLUT wraps most of the set-up stuff in a very small number of functions. This allows newbies to play around with OpenGL without being concerned about distracting details. You usually stop using it soon after the starting phase because it is very inflexible.
    Debian GNU/Linux -- You know you want it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •