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
0
votes
1 answer

Are deprecated/removed OpenGL functions still accessible?

I run Ubuntu 14.04 and when I ask for the OpenGL run by my system I get this: :~$ glxinfo | grep "version" server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 OpenGL core profile version string: 3.3 (Core Profile) Mesa…
arennuit
  • 855
  • 1
  • 7
  • 23
0
votes
0 answers

OpenGL First person camera

I'm trying to do a first cam person using OPENGL. But here's my problem. Let me introduce you my code. First of all, I have this function that allows me to get the mouse X and Y position: case WM_MOUSEMOVE: CameraManager.oldMouseX =…
James
  • 95
  • 1
  • 9
0
votes
2 answers

Where can I call gluUnproject?

This is a really simple question. Where can I call gluUnproject? Do I need a current openGL context of some kind? I looked up the function here, but that isn't telling me if there's any kind of precondition. I want to do this: GLdouble…
Stephen Furlani
  • 6,794
  • 4
  • 31
  • 60
0
votes
3 answers

Iphone OpenGL : gluLookAt X,Z to rotation (360) : Heading angle

The OpenGL program I am writing uses a port of glULookat to control the camera To rotate I have the following code case ActionTurnLeft: center[0] = eye[0] + cos(-SPEED_TURN)*v[0] - sin(-SPEED_TURN)*v[2]; center[2] = eye[2] + sin(-SPEED_TURN)*v[0]…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
2 answers

gluLookAt specification

I have some problems understanding the specification for gluLookAt. For example the z-axis is defined as: F = ( centerX - eyeX, centerY - eyeY, centerZ - eyeZ ) with center being the point the camera looks at and eye being the position the camera…
Joe
  • 1
  • 1
0
votes
1 answer

How to do gluUnProject() with XCode 8.x?

I basically want to do the trick described here - figuring out world coords given screen coords. However, the status of gluUnProject() is very unclear. I can see that it is supposed to be provided by the "OpenGL Utility" library (glu). This old…
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
0
votes
0 answers

GLURaw failing due to missing header file

I'm trying to use gloss which depends on GLURaw, and getting this error: stack install --extra-lib-dirs=/usr/lib/nvidia-367 --extra-lib-dirs=/usr/lib/x86_64-linux-gnu /tmp/stack1018/GLURaw-2.0.0.2/cbits/HsGLURaw.c:74:20: error: fatal error:…
Fresheyeball
  • 29,567
  • 20
  • 102
  • 164
0
votes
1 answer

how to link 32bit libGL.so when building on 64bit Ubuntu?

I have set up a brand new clean install of Ubuntu 14.04LTS amd64. I'm trying to build a 32bit application that needs to link libGL.so and libGLU.so. When I try to install the needed dev-packages in i386 architecture, apt-get says it has to uninstall…
Philipp
  • 957
  • 1
  • 6
  • 20
0
votes
1 answer

How do I get a precompiled binary for glu?

I have MinGW and MSys set up on a windows 7 machine, but the glu libraries that came with it are old, and dont support gluBuild3DMipmaps. I have searched everywhere for a precompiled glu library for MinGW that I can use, but I can't find anything...…
Ned Bingham
  • 2,749
  • 18
  • 23
0
votes
2 answers

c++ & OpenGl: How do you create a mesh object instance from within a class

I'm a c++ beginner , trying to build my first application with openGL. I'm trying to create a Room class that will take parameters like width, length and height to create a mesh object which I then want to draw from the main function. At the…
Nuno Bártolo
  • 75
  • 2
  • 6
0
votes
1 answer

GLU Tesselator says: "Need combine callback" But I defined a callback

I registered a CALLBACK using: gluTessCallback(tess, GLU_TESS_COMBINE, (GLvoid(*)()) &scbCombine); Where scbCombine is a function directly in the same .cpp file: void CALLBACK scbCombine(const double newVertex[3], const double *neighborVertex[4],…
Martijn Courteaux
  • 67,591
  • 47
  • 198
  • 287
0
votes
1 answer

OpenGL. Window-To-Viewport Transformation

I'm new to OpenGL. Hence I require some assistance in the matter described below. I'm not sure how to produce viewport coordinates with respect to screen coordinates as well as producing it in c++ since I used to deal with Java. In this question I…
Akhat
  • 1
  • 2
0
votes
1 answer

Why are some parts not rendered on a bigger window?

If I change the window size the objects are deformed(as I know). So Im trying to calculate the aspect but If I do this and I increase the window size only a smal rectangle is rendered. This are the relevant parts of the code : Reshape function…
noName
  • 132
  • 1
  • 9
0
votes
0 answers

gluBuild2DMipmaps sometimes crashes

I'm loading a texture image: //glGenTextures... glBindTexture... BYTE* image = (BYTE*) malloc(256 * 256 * 3); FILE* imageFile; errno_t err = fopen_s(&imageFile, fileName, "rb"); if (err != 0){ perror("Error loading file"); return…
Derek 朕會功夫
  • 92,235
  • 44
  • 185
  • 247
0
votes
2 answers

Drawing a quarter circle in c++ using GLU

// baseballField glColor3f(0.22, 0.36, 0.20); GLUquadricObj *myobject; myobject = gluNewQuadric(); glTranslatef(120.0, 655.0, 0.0); gluDisk(myobject, 0.0, 40.0, 60, 4); I'm trying to simulate the shape of a baseball field by creating a quarter…
Ajom1795
  • 55
  • 7