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
0
votes
0 answers

OpenGL Camera Orientation

I'm having trouble orienting the camera the way I want. I got that I need to use gluLookAt to set the camera. As far as I understood the first three is for the location of the camera, the second set is for destination and the third set is for the…
hebele
  • 75
  • 9
0
votes
1 answer

CLion compile glut linux

I am trying to compile a C++ project on linux which utilizes freeglut. I can not build the project because the libraries are not linked correctly in the CMake files. I researched and tried to apply what was mentioned in a similar answer here: How to…
Kyu96
  • 1,159
  • 2
  • 17
  • 35
0
votes
0 answers

Can't draw path on VS2015 but code works fine on VS2010

I am using Nate Robins' GLUT for Win 32. I have been using VS2015 and VS2010 on alternate systems for development. I've created a simulation of Dijkestra's on 5 nodes and the final output is the shortest path from the source node to the destination…
agupta
  • 175
  • 2
  • 14
0
votes
2 answers

glFlush() do not show anything

My OpenGL glFlush() didn't show anything when I run a glut project in Codeblocks on windows 7. Here my main function. #include #include #include #include float Color1=0.0, Color2=0.0, Color3=0.0; int…
MD. ABU SAYED
  • 241
  • 2
  • 5
0
votes
2 answers

How can I make the camera fly through objects in OpenGL using Glut?

First off, all of my code can be found here, it's in 3 files. flythrough.cpp, support.cpp, support.h Okay... so if you run that, it seems to work, but a few things are really bugging me! The camera is starting off in a strange location, I try to…
ardavis
  • 9,842
  • 12
  • 58
  • 112
0
votes
1 answer

Moving a Sphere Around a Ellipse

I am trying to write a simple program that moves a Sphere around a Ellipse in OpenGL. I thought that if I set translate coordinates to the same as the Ellipse coordinates it would simulate motion. This is the code I already have: #include…
0
votes
1 answer

How can I write an entire c++ glut program as a function that can be called in another program?

I want call below code as function in my OpenGL program.My questions are: Is it possible to call glutIdleFunc() outside of the main() ? Can I call below code as a function in my main program as a switch case…
0
votes
2 answers

How to create a rubber-esque drag and move of 2D object in c++ glut

I have an object that I want to be able to move. I want it to move only if i click within in, then drag my mouse to a place, then upon release, it starts moving towards it. so if i click inside it, I can move my mouse anywhere as much as I want…
Alonzo Robbe
  • 465
  • 1
  • 8
  • 23
0
votes
1 answer

in opengl, how to change mouse follow to mouse click, drag and move on release?

I have program in which the object (a triangle) follows the mouse as it moves around and rotates to the direction its moving. What do I have to do to make it so the object stays still, until I click it, drag it to a position and once I release the…
Alonzo Robbe
  • 465
  • 1
  • 8
  • 23
0
votes
1 answer

How to check window is open via openGL or Glut

I have seen a method in SFML called isOpen which checks if the window is open. Is there any similar equivalent in openGL or GLUT which checks if the window is open?
ar2015
  • 5,558
  • 8
  • 53
  • 110
0
votes
0 answers

why does glutMouseFunc track state but glutKeyboardFunc does not?

I am working on a game using OpenGL and I noticed that I have to register a glutMouseFunc(void (*func)(int button, int state, int x, int y)) to detect mouse presses and releases, but I have to register a glutKeyboardFunc(void (*func)(unsigned char…
Jesse McDonald
  • 159
  • 1
  • 10
0
votes
2 answers

OpenGl problem with Ubuntu 10.10

When i try to run this program it starts, shows the title bar but there is nothing - it only docks for the bottom task line and when i click it - nothing shows. There is no window with the program. Any idea ? Here's the code that uses OpenGL stuff…
Wazery
  • 15,394
  • 19
  • 63
  • 95
0
votes
1 answer

glut, glew dll : Binary was not built with debug information

This is the output I am getting and 'abc.exe': Loaded 'C:\Windows\system\glut32.dll', Binary was not built with debug information. ' 'abc.exe': Loaded 'C:\Windows\System32\glew32.dll', Binary was not built with debug information. The thread 'Win32…
Egon
  • 3,718
  • 3
  • 34
  • 48
0
votes
1 answer

C++ GLUT Make object dissappear when outside viewport

I have got a small question while coding. I want to draw a cube, using GLUT in C++. Im using the window to viewport transformation to draw the cube in the middle of the screen. Now the viewport window has a size, and if I move the cube in the…
0
votes
0 answers

glut won't work on my computer

when I try to create a cube in using c++ and glut but it returns the errors; q-3d.cpp: (.text+0xc5): undefined reference to `glutInit', q-3d.cpp: (.text+0xcf): undefined reference to `glutCreateWindow', q-3d.cpp: (.text+0xde): undefined reference…
1 2 3
99
100