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

How do I connect static libs in CLion with CMake?

I want to use OpenGL 4.5 and freeglut in my project. I've got compiled freeglut library (include folder, .dll and .lib). Here's CMakeLists.txt I've got so far: cmake_minimum_required(VERSION 3.7) project(DuperTest) find_package(OpenGL…
user1496491
  • 453
  • 2
  • 11
  • 23
0
votes
1 answer

How to install freeglut without placing the .dll in system folders?

I'm looking for a way to install freeglut properly. EVERYWHERE I looked so far recommended to put .dll in system folders. But I don't want to. I want my project to be potable, I want to be able to send my project to other pc and keep working on my…
user1496491
  • 453
  • 2
  • 11
  • 23
0
votes
1 answer

glutPassiveMotionFunc problems

Im kinda new to glut and opengl and I'm trying to make camera movement on mouse movement but when trying to get the mouse position on the screen I assumed the method you want to pass the x and y to should just be referenced in the…
JackCross
  • 37
  • 5
0
votes
2 answers

Strange compilation error after installing freeglut

I followed this installation video to install Dev C++ and freeglut for a class, and I did so precisely according to the instructions, but I'm getting a strange compilation error when I toss in some prewritten test code to try and figure it out. The…
Legion Daeth
  • 329
  • 1
  • 5
  • 15
0
votes
1 answer

Shared library with freeglut - undefined symbol

I'm actually experiencing some issues while linking an OpenGL/freeglut shared library (.so) with a C++ project. I'm sure that the problem is in my Makefile since the code I use to load (using the dlopen/dlsym/dlclose functions) works fine with other…
user4942223
0
votes
1 answer

Getting a return value from a Freeglut/Opengl 2.1 project

I am currently working on an OpenGL 2.1/Freeglut project in C++ and I need to get a return value from a glut loop using the glutMainLoop() function without leaving immediately the current program. The solution I've found by now is to call the…
user4942223
0
votes
0 answers

How can I keep a console error open in VS when I'm using freeglut and OpenGL?

I'm trying out a first-time application using freeglut and OpenGL on VS 2015. I'm able to build with no errors. But when I Ctrl+F5 to Start Without Debugging, some error appears on the console, and then the console closes. How can I keep this…
DragonautX
  • 860
  • 1
  • 12
  • 22
0
votes
0 answers

Reopening the FreeGLUT window

I have tried to reopen the FreeGLUT window, after the user closes it. I do it via two application. One works and the other fails. What is the problem with the one which fails with this error? freeglut illegal glutInit() reinitialization…
ar2015
  • 5,558
  • 8
  • 53
  • 110
0
votes
2 answers

Waving Flag Effect in Opengl (C++)

as a part of a project; I need to create a flag with waving effect as shown below: https://i.stack.imgur.com/db5zB.gif I couldn't manage to add wave effect so I removed the crescent & star and now trying to wave the flag itself. I believe when I…
Aguen
  • 17
  • 1
  • 6
0
votes
2 answers

Random points generation in openGL

I want to draw 100 points on the screen using openGL. This means there will be 100 GL_POINTS randomly located on the screen each time I run the program. Currently there is only one point that remains on the screen and its position was previously…
zihaow
  • 312
  • 2
  • 9
  • 23
0
votes
1 answer

Freeglut: glReadPixels() does not work when minimizing (iconify) window

I use freeglut to display OpenGL renderings in a Windows window. The last step of my pipeline is to grab the pixels from my buffer using glReadPixels() for later processing (e.g. storing in a video file). However, as soon as I minimize the window…
PhilLab
  • 4,777
  • 1
  • 25
  • 77
0
votes
2 answers

GlutSolidSphere not solid

Hi my program is supposed to display a solid red colored sphere in the center of the screen, all i am getting is the boundary of the sphere : int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA); …
AnkurVj
  • 7,958
  • 10
  • 43
  • 55
0
votes
1 answer

What does the signature of a method have to be to work with glutDisplayFunc()?

So, I am initially trying to do some basic OpenGL (freeglut) stuff in C++, but I've hit a snag. I am getting the following error: .../TextureMapper.cpp: In member function 'void TextureMapper::run()': .../TextureMapper.cpp:67:28: error: cannot…
Cache Staheli
  • 3,510
  • 7
  • 32
  • 51
0
votes
1 answer

Load jpg image as texture - freeimage, opengl

I tried to load jpg image with FreeImage Library. I used this code, but the result was only white window. I think to use this image like background and after that to load object file. It`s the code, that i used: #include #include…
I.To
  • 1
  • 3
0
votes
0 answers

Error while executing C file containing OPENGL libraries

I compiled a c file which is using OPENGL libraries using gcc command: gcc robot.c -lGL -lglut -lGLU -o robot . It gets compiled successfully, but when I am running the executable generated than I am getting this error: error while loading shared…
surru
  • 26
  • 5