Questions tagged [glu]

The OpenGL Utility Library

The OpenGL Utility Library (GLU) provides a number of higher level drawing routines and utility functions on top of OpenGL. As such it provides functionality for:

  • Mipmapping,
  • Matrix manipulation
  • Polygon tessellation
  • Quadrics
  • NURBS
  • Error handling

Version 1.3 of the GLU specification can be found on the OpenGL website (PDF).

Resources:

229 questions
-1
votes
1 answer

Why is my "homemade" openGL 3D object not shaded properly?

I'm trying to make a 3D square frustum by drawing vertices: int xPts[] = { 1.0, 1.0, -1.0, -1.0, 2.0, 2.0, -2.0, -2.0 }; int yPts[] = { 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0 }; int zPts[] = { 1.0, -1.0, -1.0, 1.0, 2.0, -2.0, -2.0, 2.0…
carmenism
  • 1,087
  • 3
  • 12
  • 31
-1
votes
1 answer

gluCylinder() how works OpenGL

I wanted to build a cricket ground with OpenGL. I made several polygons to indicate field, pitch and bowling lines. But the problem is when I am trying to use gluCylinder to make stumps I made depth glEnable(GL_DEPTH_TEST), but my polygons are then…
amin__
  • 1,018
  • 3
  • 15
  • 22
-2
votes
1 answer

How can I change the color of a cylinder in opengl?

I want to draw one cylinder using OpenGL in Visual C++. I want to make the color of the cylinder red, so I add the following code in the renderCylinder function, but it doesn't change. glColor3f(1.0, 0.0, 0.0); Could you help me to solve this…
kimyubin
  • 21
  • 4
-2
votes
1 answer

For anyone who understands OpenGL

I'm confused. I've been trying to start out with OpenGL, and I haven't had any success at all. details: I seem to have been trying to use Mesa 3D which isn't even strictly an official OpenGL implementation anyway. Does Mesa 3D even use the gpu? and…
Codesmith
  • 5,779
  • 5
  • 38
  • 50
1 2 3
15
16