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

Strange rendering flicker

I am rendering a pointcloud, but when I move the camera, points begin to flicker(youtu.be/wMTVID7NATo). The strange thing is that the flicker disappear or is reduced when I change either the clear colour or the colour of the points. For example…
0
votes
1 answer

glutDisplayFunc() doesn't draw but normal function call does

I am unable to display a simple moving triangle on the screen, and it only happens when I call my function with glutDisplayFunc(render). If I call my function like a normal call render() it display the triangle well but in this case it doesn't…
0
votes
0 answers

Cmake cannot find OpenGL/GLUT

everybody. I have to compile my OpenGL program but occurs that couldn't find OpenGL, the following is the error hint. Error:Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) However, I tried plenty of ways to solve without taking…
Jian Cao
  • 21
  • 1
  • 7
0
votes
1 answer

Getting "undefined reference to `glBegin' " to formerly working project, what needs updating in make file?

So I'm trying to re-build a 4 year old project that was working, but now is having issues building. I was able to address some of the compile related issues, but now I'm having linker issues with the openGL calls. In terms of what's different, now…
Mr.UNOwen
  • 163
  • 1
  • 1
  • 14
0
votes
1 answer

Getting freeglut library to work with opengl

I am trying to learn opengl for a class but am having trouble with getting setup. I am using Windows, with the IDE CLion, and cygwin64. So far I have been able to compile and run Gl.h and Glu.h but I am having trouble getting the static library for…
0
votes
2 answers

opengl off screen rendering

I am using off screen rendering using opengl FBO and glut on a MAC OS X 10.6. The program involves movement of multiple 3D objects. The program seems to be working fine except that I am required to include an option where the off screen buffer…
John Qualis
  • 1,663
  • 4
  • 33
  • 52
0
votes
1 answer

error undefined reference to '_setargv'

The issue I'm getting is: undefined reference to 'set_argv' I've tried just about everything I could think of, yet nothing appears to work. I followed the installation guide step by step on how to configure freeglut with Codeblocks. #ifdef…
Wulfe
  • 1
  • 1
0
votes
1 answer

Glut Ortho2D Projection not showing

I have a problem where I am able to see the desired object in perspective projection while not being able to see the object in orthogonal projection even when the camera is located in the same coordinates and looking at the same coordinate. I know…
terminix00
  • 327
  • 2
  • 13
0
votes
1 answer

Creating window using glut, but program is inconsistent

I'm just trying to make a program that displays a window with a box in it, but when I run the program I only get the window display maybe once out of 5 runs. Every time I execute the command line gives appropriate responses and i see the window's…
oadams
  • 3,019
  • 6
  • 30
  • 53
0
votes
1 answer

Why doesn't OpenGL draw object from std::vector?

Why isn't it drawing object from vector? Where's my mistake? It shows m_x,m_y position like this object would exist but this object isn't on my screen. main.cpp: #include #include #define NDEBUG #include "Figura.h" …
0
votes
1 answer

How to add glui to working freeglut project?

I have a working project containing freeglut and glew. I want to add buttons and menu bar to the project, by using GLUI . So the question is , how can i add GLUI linker to the project? , meaning header and libraries and make it all work together…
tnt1674
  • 11
  • 3
0
votes
1 answer

glutDisplayFunc() with pointer to memeber functions

I have a C++ class that contains the draw function that I want to pass to glutDisplayFunc(). glutDisplayFunc takes a function pointer (void (*)() ) as its argument. I have tried : Model myModel(pathToTextures); //Model contains the Draw…
Ricko
  • 5
  • 1
  • 5
0
votes
1 answer

Compiling with Callback Function Pointers in Visual C++

I am making a simple pong game with a API called freeglut, following along with the instructions provided at http://noobtuts.com/cpp/2d-pong-game. Included in the API are two functions that call for an pointer to a callback that returns void, which…
Jack Frye
  • 583
  • 1
  • 7
  • 28
0
votes
1 answer

Multiple errors when using gl

I'm trying to create a Snake game with C++ using Opengl, SDL and GL although I have everything Linked correctly I get a pile of errors when building, I have looked around and found that these errors are pretty common when using GL although I can't…
im brett
  • 33
  • 2
  • 12
0
votes
2 answers

GCC C++ Linker section on FC13

I am trying to get OpenGL and Glut running on Eclipse Linux FC13. After spending two days on it, I admit that help is needed. On FC13 Eclipse, I see /usr/include/GL and /usr/include/SDL -- so the libs are there. I started Eclipse, and then tried to…
ThreaderSlash
  • 1,313
  • 3
  • 27
  • 43