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

Win7 GLUT window doesn't receive events

I have created a simple Visual Studio Express 2010 C++ project using GLUT and OpenGL, it compiles and runs ok, except that the window it creates receives no events.. the close/minimize buttons don't do anything (not even mouseover) no context menu…
0
votes
1 answer

GLUT does not get time with millis accuracy

I've got timer issue in GLUT. glutGet(GLUT_ELAPSED_TIME) only get time with sec accuracy (1000, 2000, 3000...) and glutTimerFunc(...) works only when millis parameter is set greater than 1000. I don't know exactly how GLUT measure time but I think…
서강욱
  • 47
  • 1
  • 2
0
votes
1 answer

calculate a picture with cuda and display it directly with OpenGL

I would like to write a program which calculates me a picture (actually a hologram for a Spatial Light Modulator (SLM)). This should happen in real time. The picture should be calculated on the GPU and then displayed from there directly on the…
0
votes
1 answer

OpenGL random size rectangle code changes drawn rectangles

I want to draw random size squares in the position where the mouse clicks. But my code changes the size of the rectangle already painted. I want to ask how I can change my code for not Change the size of the rectangle drew before. here is my code…
cookiecho
  • 11
  • 1
0
votes
1 answer

becase glOrtho change, my mouse callback is not working. why?

if glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0) then my code is working. But if I change to glOrtho(0.0, 800.0, 0.0, 600.0, -1.0, 1.0) then my code is not working. Maybe mouse callback is not working. Change glOrtho is effort to mouse callback? I don't…
cookiecho
  • 11
  • 1
0
votes
0 answers

glutCreateWindow exits with code 1 in Windows 10

I am trying to go through a basic tutorial posted here (http://sourceforge.net/project/showfiles.php?group_id=104004&package_id=158526&release_id=463385) and listed on this page (http://gpgpu.org/developer/legacy-gpgpu-graphics-apis). I have also…
Jeff Saremi
  • 2,674
  • 3
  • 33
  • 57
0
votes
1 answer

How to add separator to context menus in OpenGL/GLUT

Normally this would be something like: glutAddMenuEntry("-", ); But it doesn't work. After looking it up on Google I couldn't find much information about this, maybe it's not possible using GLUT? I found a couple of examples…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
0
votes
0 answers

glColor3f not coding in List background openGL

Currently creating a small animation of Neptune and its moon's revolving around the sun. With some help I managed to get a background of stars but instead of being white, they're now black. I've tried putting glColor3f(1.0, 1.0, 1.0) inside and…
0
votes
2 answers

OpenGL - How do you scroll a texture?

I am creating a texture from a pango layout and mapping the texture to the screen using OpenGL and GLUT. I want to scroll the texture in the window. I'm not concerned with the controls to scroll, but how do I cause map the portion of the texture I…
Fred Finkle
  • 1,947
  • 3
  • 18
  • 21
0
votes
0 answers

Unable to Compile openGL code in dev c++

Currently I am trying to compile code below which was a part of my academic activities #include #include int main() { glutCreateWindow("first graphics window"); } but It is constantly showing these 3…
Tayyab Yasin
  • 37
  • 1
  • 10
0
votes
1 answer

Freeglut doesn't initialize when using it from Swift

I've tried to use the Freeglut library in a Swift 4 Project. When the void glutInit(int *argcp, char **argv); function is shifted to Swift, its declaration is func glutInit(_ pargc: UnsafeMutablePointer!, _ argv:…
oliver_p
  • 3
  • 2
0
votes
1 answer

Linker parameter order for SFML and GLUT

I was asked by someone to look into some project, where he wanted me to implement a specific feature. However, I'm unable to get the program to run, it uses both SFML and GLUT. I'm on Windows Vista with Dev Cpp and have both libraries installed and…
Farhan
  • 51
  • 1
  • 1
  • 4
0
votes
1 answer

Move OpenGL robot arm when receiving UDP data?

I have this piece of code, the main idea is to draw a robot arm and move it whenever a data is received ob the 9090 port using UDP. I want to figure out why after displaying the robot arm, I have no message displayed on the console. Moreover I…
C. DAVID
  • 61
  • 1
  • 7
0
votes
3 answers

OpenGL (glut)- increase pixel placement precision

I am trying to write program that displays a window with simulated "tv static". I have it mostly working but when I expand the window grid lines form. I have no idea what could be causing this as this is my first OpenGL (glut) program. Any…
romejoe
  • 423
  • 1
  • 5
  • 16
0
votes
0 answers

Link SDL and Glut in CMake

I have a project (on linux) where I require glut and SDL. I already managed to properly link glut, but I still cant get SDL linked. My CMake file looks like this: cmake_minimum_required(VERSION 3.7) project(ObjLoader) add_executable(testas…
Kyu96
  • 1,159
  • 2
  • 17
  • 35
1 2 3
99
100