Questions tagged [freeglut]

freeglut is an open-source alternative to the OpenGL Utility Toolkit (GLUT) library.

freeglut is an open-source alternative to the OpenGL Utility Toolkit (GLUT) library ().

Resources:

610 questions
4
votes
1 answer

GLUT Error in Haskell Program

I'm using OpenGL with Haskell. I tried a sample program, it compiled successfully using ghc Compiler but when I run it, I get this error user error (unknown GLUT entry glutInit) I searched about this but most of the answers were related to this…
Atul Raj
  • 43
  • 4
4
votes
2 answers

LINK : fatal error LNK1104: cannot open file 'freeglut.lib'

using visual studio 2015 already added in Linker -> General -> Addtional Library Dependencies and Linker -> Input -> Additional Dependencies Still recieving error LINK : fatal error LNK1104: cannot open file 'freeglut.lib' Is there something else I…
user1496491
  • 453
  • 2
  • 11
  • 23
4
votes
1 answer

glut - holding a key down

I have some basic code to collect key up and key down events using glut. If I hold a key down I am getting continuous events firing (down/up/down/up/down/up/........), instead of the intended down (once, at the start) and up (once, at the…
Beakie
  • 1,948
  • 3
  • 20
  • 46
4
votes
1 answer

glutCloseFunc without terminating application

I have created a window with glutCreateWindow and started a loop using glutMainLoop. I want to end that loop and close the window so I use glutLeaveMainLoop and glutCloseFunc to destroy it. Automatically, my application terminates. I would like the…
Finfa811
  • 618
  • 1
  • 8
  • 28
4
votes
1 answer

How to run CUDA/OpenGL interop (particle) sample from a remote machine

I am trying to run the CUDA particle sample on a remote Ubuntu machine from a host ubuntu machine. I followed this tutorial: http://devblogs.nvidia.com/parallelforall/remote-application-development-nvidia-nsight-eclipse-edition/ and it runs on my…
w0rldeat3r
  • 89
  • 2
  • 8
4
votes
1 answer

How to install FreeGlut(3.0.0 or 2.8.0)on OS X Yosemite

smooth_opengl3.c:123:1: error: unknown type name 'PFNGLGENBUFFERSPROC' PFNGLGENBUFFERSPROC gl_GenBuffers; ^ smooth_opengl3.c:124:1: error: unknown type name 'PFNGLBINDBUFFERPROC' PFNGLBINDBUFFERPROC gl_BindBuffer; ^ smooth_opengl3.c:125:1: error:…
Kanwar Baweja
  • 183
  • 1
  • 11
4
votes
1 answer

Is using the same VBO for two objects okay?

Lets say if I have multiple of the same Object and I want to render them in different places. Could I use the same VBO (to save ram) but change the matrices that are sent to the Shader? Or it this wrong?
MajesticHey
  • 128
  • 8
4
votes
5 answers

How to draw a filled envelop like a cone on OpenGL (using GLUT)?

I am using freeglut for opengl rendering... I need to draw an envelop looking like a cone (2D) that has to be filled with some color and some transparency applied. Is the freeglut toolkit equipped with such an inbuilt functionality to draw filled…
ashishsony
  • 2,537
  • 3
  • 26
  • 38
4
votes
1 answer

cannot use GLSL 330 on mac mavericks

I'm trying to learn OpenGL and the material is using #version 330 in shaders. I can compile it successfully, but when I try to run it, it complains Version 330 is not supported. In my source code, I use free glut and OpenGL framework in Xcode. If I…
Negelis
  • 376
  • 4
  • 17
4
votes
1 answer

OpenGL framerate: connection with the size of the window

I was in the process of tracking down and eliminating those parts of my C++/OpenGL/GLUT code that were inefficient and slow, and in doing so, I watched my frames per second counter to know if I was actually making progress. I noticed that my frame…
rspencer
  • 2,651
  • 2
  • 21
  • 29
4
votes
4 answers

Installing FreeGLUT on OS X Mavericks

Now that OS X can use OpenGL 4+ I would like to begin learning more modern OpenGL. The tutorial I am following uses FreeGLUT as the windowing framework. While OS X has Apple's own adaption of GLUT, it is greatly outdated and doesn't work with modern…
foobar5512
  • 2,470
  • 5
  • 36
  • 52
4
votes
1 answer

glutBitmapCharacter() is too slow, any alternatives for using fonts in OpenGL program?

I am working on a 3D application, trying to render some text onto the screen. But if the text is more than 10 characters the FPS drops to 2, its really annoying. My program uses glutPostRedisplay() function a lot, this is why its slowing down for…
2am
  • 699
  • 1
  • 7
  • 25
4
votes
1 answer

FreeGLUT or Mesa, which one should I use?

So as the title says, which one would you choose? It would be great if one can also explain the reasons behind.
chutsu
  • 13,612
  • 19
  • 65
  • 86
4
votes
1 answer

OpenGL shader(s) refusing to link

Problem: Been struggling to get my code to load external shaders and it is not working. No matter how i rewrite the code and try again i get the same error every time. The shaders compile but will not link, is there anything that i am doing wrong in…
iKlsR
  • 2,642
  • 6
  • 27
  • 45
3
votes
1 answer

Threading with glut: glutPostRedisplay being ignored

I have a program which updates it the program output then the state of the program changes. This happens when a ticker of the time (not an openGL timer, one implemented in threads) happens, and when keyboard input is registered from glut (using…
111111
  • 15,686
  • 6
  • 47
  • 62