Questions tagged [glut]

The [Open]GL Utility Toolkit (GLUT) is a utility library for OpenGL applications to put the platform-dependent details (e.g. creating windows and responding to mouse events and key presses) under one hood, in an easy and portable way.

GLUT stands for OpenGL Utility Toolkit is a utility library for OpenGL applications to put the platform-dependent details (e.g., creating windows and responding to mouse events and key presses) under one hood, in an easy and portable way.

The OpenGL Utility Toolkit is a kind of library of utilities for OpenGL programs, which primarily perform system-level I/O with the host operating system. Functions performed include window definition, window control, and monitoring of keyboard and mouse input. Routines for drawing a number of geometric primitives are also provided.

The original GLUT has been unsupported for 20 years (see GLUT - The OpenGL Utility Toolkit), but there exists a current, maintained alternative named FreeGLUT.

Tag usage:

The tag can be used for OpenGL Utility Toolkit-related programming problems. The tag can be used for installation related problems of GLUT packages.

Read more:

2271 questions
11
votes
4 answers

OpenGL Rotation

I'm trying to do a simple rotation in OpenGL but must be missing the point. I'm not looking for a specific fix so much as a quick explanation or link that explains OpenGL rotation more generally. At the moment I have code like this: glPushMatrix(); …
Matt Mitchell
  • 40,943
  • 35
  • 118
  • 185
11
votes
2 answers

Using GLUT with Visual C++ Express Edition

What are the basic steps to compile an OpenGL application using GLUT (OpenGL Utility Toolkit) under Visual C++ Express Edition?
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
11
votes
1 answer

OpenGL GLUT window very slow, why?

The problem I have just now begun working with OpenGL using GLUT. The code below compiles and displays two wireframe cubes and a sphere. The problem is that when I attempt to drag or resize the window it induces a noticeable delay before following…
10
votes
2 answers

GLUT Alternatives for Haskell?

I don't want to use GLUT, because it does not have a Haskell-like feeling on it. It basically forces you to use IORef and such, because of the callbacks. I've considered GLFW, which seems simple and lets me do the game loop in a monad. But it seems…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
10
votes
1 answer

Set background image of an openGL window

I am trying to set a background image of my openGL window by creating a quad on an orthogonal projection matrix and adding texture to it. I am also making use of GLUT toolkit in my application. However I am having several problems. Below are…
Vitalij
  • 4,587
  • 9
  • 42
  • 65
10
votes
1 answer

SDL vs GLUT in opengl 3D programming

I'm beginning a series of tutorials on SDL. Before I dig too far, I'd like to know what type of control SDL gives me over GLUT? Also, do either support webcam access (for face tracking or motion detection), or is that best managed through OpenCV?
BinRoot
  • 694
  • 2
  • 8
  • 21
10
votes
6 answers

Opengl drawing a 2d overlay on a 3d scene problem

I have a moving 3d scene set up, and I want to make a stationary 2d GUI overlay that is always on top, when I try making 2d shapes I don't see anything. When I call: glMatrixMode(GL_PROJECTION); my 3d scene disappears and I'm left with a blank…
ajoe
  • 558
  • 1
  • 11
  • 32
10
votes
2 answers

g++ linker: /usr/lib/libGL.so.1: could not read symbols: Invalid operation

I'm trying to build a very simple OpenGL-app under Ubuntu 10.04 (I have a 32 bit system). When I'm trying to compile the file, I get the error message: g++ -L/usr/lib simple.cpp -lglut /usr/bin/ld: /tmp/ccoPczAo.o: undefined reference to symbol…
phimuemue
  • 34,669
  • 9
  • 84
  • 115
10
votes
1 answer

How to draw connected strip lines in OpenGL like this

I want to draw a series of connected lines (GL_LINE_STRIP) in following way. I had tried to code by my own, but not get desired result, so i come here, help me to find out where i was wrong. here i am giving only my draw()…
user437641
  • 175
  • 2
  • 3
  • 10
10
votes
2 answers

is it possible to create a fixed size glut window?

is it possible to create a fixed size window using glut, so any changes with the window's dimensions will be disregarded. it's kinda too late for me switching back to SDL or anything similar.
igal k
  • 1,883
  • 2
  • 28
  • 57
9
votes
6 answers

glutPassiveMotionFunc and glutWarpMousePointer

I want to implement my own cursor in an OpenGL / GLUT window. The usual way to do this is to freeze the cursor (so it can't hit the edges of the screen) and keep track of its position yourself. I can make the onscreen cursor invisible using…
Steven Canfield
  • 7,312
  • 5
  • 35
  • 28
9
votes
2 answers

Portable toolkit library for creating OpenGL applications

I am new to OpenGL and I have been doing some tutorials utilizing GLUT. GLUT seems to be quite clunky and "old-fashioned" (if you know what I mean :D) so I am asking if there are a bit more straightforward and easier (perhaps more intuitive)…
GLnewb
  • 93
  • 5
9
votes
3 answers

Constant game speed independent of variable FPS in OpenGL with GLUT?

I've been reading Koen Witters detailed article about different game loop solutions but I'm having some problems implementing the last one with GLUT, which is the recommended one. After reading a couple of articles, tutorials and code from other…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
9
votes
1 answer

C++: Removing Moire effect from openGL

I draw patterns which have detailed pixels and they often face with Moire effect. I am not good at shading and I am not sure if this problem will be solved by shaders. I have not found any basic, understandable and complete example of shaders. Most…
ar2015
  • 5,558
  • 8
  • 53
  • 110
9
votes
3 answers

glutInitContextVersion() is missing from glut library

I am practicing some opengl code, how ever when i want to force the opengl context to use a certain version of opengl through glutInitContextVersion() it fails compilation process and gives this message:- use of undeclared identifier…
BulBul
  • 1,159
  • 3
  • 24
  • 37