-
>
> I compiled using command
> rvcemcabrp@rvcemcabrp-laptop:~/Desktop/opengl$ g++
> rotating_cube_display_open_gl.C -lm -lGL -lGLU -lglut
>
> then i tried this
>
> ./a.out
> X Error of failed request: BadRequest (invalid request code or no such
> operation)
> Major opcode of failed request: 143 (GLX)
> Minor opcode of failed request: 19 (X_GLXQueryServerString)
> Serial number of failed request: 12
> Current serial number in output stream: 12
> rvcemcabrp@rvcemcabrp-laptop:~/Desktop/opengl$
>
> i want solution for any of the following problems
>
>
> ------------------ this is for one of the labs for BE ( computer science
> students -- VI semester )
> Implement the following programs in C / C++
>
>
> 1. Program to recursively subdivide a tetrahedron to from 3D Sierpinski
> gasket. The number of recursive steps is to be specified by the user.
> 2. Program to implement Liang-Barsky line clipping algorithm.
>
> 3. Program to draw a color cube and spin it using OpenGL transformation
> matrices.
>
> 4. Program to create a house like figure and rotate it about a given
> fixed point using OpenGL functions.
>
> 5. Program to implement the Cohen-Sutherland line-clipping algorithm.
> Make provision to specify the input line, window for clipping and view
> port for displaying the clipped image.
>
> 6. Program to create a cylinder and a parallelepiped by extruding a
> circle and
>
> quadrilateral respectively. Allow the user to specify the circle and
> the quadrilateral.
>
> 7 Program, using OpenGL functions, to draw a simple shaded scene
> consisting of a tea pot on a table. Define suitably the position and
> properties of the light source along with the properties of the properties
> of the surfaces of the solid object used in the scene.
>
> 1. Program to draw a color cube and allow the user to move the camera
> suitably to experiment with perspective viewing. Use OpenGL functions.
> 2. Program to fill any given polygon using scan-line area filling
> algorithm. (Use appropriate data structures.)
> 3. Program to display a set of values { fij } as a rectangular mesh.
>
>
> Part B
>
> Develop a suitable Graphics package to implement the skills learnt in the
> theory and the exercises indicated in Part A. Use the OpenGL.
>
>
>
i have ran opengl progs :) i ran it as
gcc -lglut <filename.c> -o <output file name >
more on this blog
http://techietipsandtricks.blogspot.com/2009/03/opengl-using-gcc-in-ubuntu.html