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
-1
votes
2 answers

How to make a different color the inner and the outer part of the parabola with Glut/opengl?

The problem: There is a parabola on a plane defined by 3 points. Here you can see what it looks like. (this is what I made so far...) : Gif about the process So I want to fill with a color the inner part of the parabola and with a different color…
Gabe
  • 624
  • 8
  • 19
-1
votes
3 answers

How to make your code execute slowly by using sleep() or something else?

I am trying to make some shapes rotate every .5 secs while displaying it the entire time, while using a loop, however, it only displays the end result. How can I make it display the changing image constantly? Here is what I have: for (float i =…
mr nooby noob
  • 1,860
  • 5
  • 33
  • 56
-1
votes
1 answer

OpenGL with GLUT: Solid objects are transperent

I am trying to paint a robot, which has a cube-like head, using glutSolidCube(), and to paint its eyes using glutSolidSphere(). For some reason, when I look at the robot from the other side, I can still see its eyes on the inner side of the edge of…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
-1
votes
1 answer

freeglut_main.c not found in OPTIX 3.8

I have been working in Optix for my ray tracing project, i went through its classes and function , I know that all the display function and call backs are handled in glutmainloop() and it will never end, my question is I cannot find any function or…
-1
votes
1 answer

Adding gluPerspective and gluLookAt made my drawing disappear

I'm currently working on a basic GUI that create and draw a robot in a 3d space, I'm using OpenGL and freeglut to deal with the 3d part. Until last week, I was ignoring all the perspective stuff like 'gluLookAt' or 'gluPerspective' ... Now, I would…
-1
votes
1 answer

Glut, different context in different thread C++

I'm trying to have to different glut window in different context, I mean, each window have its own callback for display, idle... So I've some problems about glut: First attempt: glutInit at the beginning of the programme, thread after -> When I…
Titouan56
  • 6,932
  • 11
  • 37
  • 61
-1
votes
1 answer

Eclipse, MinGW, Freeglut undefined reference

I've been trying to compile this OpenGL tutorial (originally purposed for Visual Studio) but I keep having 'undefined reference' errors. The compiler output is as follows: Info: Internal Builder is used for build g++ -o OpenGLTutorial.exe…
-1
votes
1 answer

OpenGL ignoring Shaders

OpenGl seems to be ignoring my shaders, not scalling, or changing the color. Screenshot I dont get any errors, throught the errorhandler either. I have been at it for hours, what am i doing wrong? im using freeglut and glew(dont know it that…
Miniwoffer
  • 19
  • 4
-1
votes
1 answer

Using freeglut without an IDE

I tried to use freeglut with codeblocks and also Microsoft visual studio 2010. I tried the official codeblocks instruction page but still I couldn't successfully use it. So I tried directly including the freeglut file like this(by copying it in the…
user2730496
-1
votes
1 answer

Camera will not move in OpenGL

I am having problems with using a camera in OpenGL/freeGLUT. Here is my code: http://pastebin.com/VCi3Bjq5 (For some reason, when I paste the code into the code feature on this site, it gives extremely weird output.) As far as I can tell this…
JayBee
  • 540
  • 1
  • 5
  • 22
-1
votes
1 answer

freeglut window init + glew 3.0 context creation does not work

I am trying to create a window with freeglut and then use glew to create a 3.2 context in order to use modern OpenGL functions (using c++ and a Windows pc). My Problem is that the context creation (which i tried to do both before and after the…
user1059863
  • 89
  • 1
  • 1
  • 6
-1
votes
1 answer

Alternatives to GLUT when building menus with OpenGL

I'd like to add a menu system to my simple OpenGL program. I've used GLUT before but that was way back in 1998 and when I mentioned it here on SO you advised not to use GLUT and therefore I want to know what menu building libraries I can use,…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
-2
votes
1 answer

Malloc Issue : Double free or corruption (out) / Segmentation (core dumped) with Glut OpenGL

i am currently learning C++ and Glut / OPENGL. (I don't have the choice I must use Glut even if it's old) I keep getting errors like : -Double free or corruption (out) -Segmentation error (core dumped) -Corrupted size vs prev_size The program work…
-2
votes
1 answer

Cannot find -Ifreeglut

I am working on Glut Project in Code::Blocks. I have Freeglut.dll in windows folder in C Drive. I have also copied this file in sysWOW64 (as i am using windows 10). But it still gives the error mentioned in the pictures bellow:
-2
votes
1 answer

GLUT in small part of window. (winapi)

Is there a simple way to see openGL images only in small part of window? I need some controls like buttons or checkboxes on the rest part. How it is possible? Is it possible with (free)GLUT? ===Edit1=== In other words, I need a children window,…
ged
  • 687
  • 7
  • 19
1 2 3
40
41