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...
- 09-01-2010 #1Just 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
- 09-01-2010 #2
That depends on whether your learning material uses GLUT.
Debian GNU/Linux -- You know you want it.
- 09-01-2010 #3Just Joined!
- Join Date
- May 2010
- Posts
- 22
yes it uses GLUT what do I do next?
- 09-01-2010 #4Just 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:
(Hope that code is correct!) Unfortunately it just wont work.Code:... class Bob { void doStuff() { cout << "Doing stuff" << endl; } } ... int main() { // GLUT init functions here glutIdleFunc(Bob::doStuff); }
- 09-02-2010 #5Just Joined!
- Join Date
- May 2010
- Posts
- 22
thanks for the support . But what is the difference between glut,glu,glx??????
- 09-02-2010 #6
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.


Reply With Quote