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

OpenGl problem with Ubuntu 10.10

When i try to run this program it starts, shows the title bar but there is nothing - it only docks for the bottom task line and when i click it - nothing shows. There is no window with the program. Any idea ? Here's the code that uses OpenGL stuff…
Wazery
  • 15,394
  • 19
  • 63
  • 95
0
votes
1 answer

Where do I leave freeglut.dll without admin rights?

I have installed freeglut to develop with openGL in Visual Studio 2008. But when playing the exe after building, freeglut.dll can't be found. This is quite logical, because I haven't put it into C:\Windows\System32. I can't, because I'm no…
Marnix
  • 6,384
  • 4
  • 43
  • 78
0
votes
1 answer

Using both glOrtho and gluPerspective in OpenGL C++

The Problem arises when I go from Welcome screen which is in glOrtho to a other screen which is in gluPerspective. The only way I can render them both is when I resize the window after clicking to play from welcome screen, otherwise I receive black…
Sunim
  • 9
  • 1
  • 5
0
votes
0 answers

c# wrapper for native library

I'm working on making a c# wrapper for freeglut and it was going smoothly until I hit an issue. nativeGL.cpp: extern "C" { FREEGLUTNATIVE_API void GL_DRAW_POLY(Vector2 *points, int count) { glBegin(GL_POLYGON); …
William
  • 21
  • 2
0
votes
1 answer

Cygwin+Eclipse: How does one hide a console window in n OpengGL based program by without getting unrecognized emulation mode error?

I am using a new install of cygwin with glut32 libraries on a Windows 7 64-bit machine. I am trying to put together a test program in C++ using the Eclipse IDE. Standard terminal programs and a test GLUT32 program build and run as expected. I am…
Fariman
  • 11
  • 2
0
votes
1 answer

Conversion from a shape drawn with quads, to a shape drawn with triangles

I am a student, for a legacy openGL assignment a few weeks ago we were asked to program 3D shapes using openGL commands such as GL_DRAW_QUADS, I had been using quads for essentially everything up until that point (since it was admittedly…
StrayProg
  • 11
  • 4
0
votes
1 answer

glut cannot plot a 2D image

I am struggling with loading src/up.bmp and showing it in 2D overlaid on my 3D environment. But nothing does appear. Where is my mistake? #define SDL_MAIN_HANDLED #include #include #include #include…
javin
  • 3
  • 1
0
votes
1 answer

Why does GLUT_DEPTH destroy the rendering of my rotating teapot?

If I remove GLUT_DEPTH from glutInitDisplayMode() the teapot doesn't hide hidden surfaces but it does render. I want to hide hidden surfaces so I add GLUT_DEPTH and the teapot disappears. I don't know if something is out of order or if I'm missing…
0
votes
0 answers

OpenGL/GLUT functions deprecated in mac os x

I am currently a student and my coursework for one of my modules is about graphics programming. We have been given the framework for it and each week learning a new concept and implementing it. This all works fine when working on the lab computers…
L.K
  • 33
  • 6
0
votes
1 answer

GL_INVALID_OPERATION error 1218 (0x0502) when using simple OpenGL commands glvertex2i, glColor3ub

This is my first time using OpenGL, so this may be a stupid question, but my code is pulling a GL_INVALID_OPERATION error (1218 or 0x0502) between glBegin() and glEnd(). I'm only calling a couple simple commands but glGetError() returns 0 at the…
AdumbCopper
  • 23
  • 1
  • 4
0
votes
1 answer

Glut object's moving without telling

I'm working with Glut and C, my purpose is to screen a 3D Lego and two Kaplas with dynamic width, height and depth. There's a few keyboard listeners that move the camera, and rotate the Kaplas. My problem is: when I press any touch of the keyboard…
Ankomm
  • 553
  • 2
  • 7
  • 15
0
votes
1 answer

C++ Compiler throwing error with GLUT

The code was working fine but after I added the void projection(float), it's giving me unqaulified-id error inside the projection function. I'm using CodeBlocks IDE, MinGW. Please help me. This is the error I'm getting: ||=== Build: Debug in L3…
WhiteSword
  • 101
  • 9
0
votes
1 answer

How to write an intersection function for any kind of shapes

I have to write a function, which detects intersection and returns true or false. I have Shape.cpp file, and rectangle.cpp, circle.cpp files inherits of it. I tried to calculate it, but i failed. There is no error, but when my program starts, it…
user7135972
0
votes
1 answer

Opengl: where do I find freeglut.dll in freeglut (extracted .tar file)?

I am trying to install OpenGL in the Microsoft visual studio(professional of community version). I have downloaded glew and freeglut(.tar file). In installation steps, I learn that freeglut.dll and glew32.dll files need to be copied into certain…
Shwetha
  • 11
  • 2
0
votes
1 answer

./configure: No such file or directory cygwin Freeglut

I'm trying to generate the lib files for freeglut library. I've installed cygwin and according to README file that comes with the library, Building and Installing the Libraries with Cygwin ================================================= To build…
CroCo
  • 5,531
  • 9
  • 56
  • 88