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

Can't install freeglut3-dev package linuxmint?

I tried to install freeglut package to work with #opengl I installed freeglut3 package but i got this error when trying to install freeglut3-dev package Reading package lists... Done Building dependency tree Reading state information...…
HADID
  • 21
  • 1
  • 5
0
votes
2 answers

Segmentation fault loading texture with Devil into OpenGL

I am attempting to load a texture into OpenGL using Devil, and i am having a segmentation fault upon the calling of this constructor Sprite::Sprite(const char *path){ ILuint tex = 0; ilutEnable(ILUT_OPENGL_CONV); ilGenImages(1, &tex); …
DrPresident
  • 7
  • 1
  • 6
0
votes
1 answer

Text not rendering with GLUT

I'm trying to render a string to screen and I can't get it to work I use freeglut and visual studio 2013. This is my glutinit: glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH | GLUT_ALPHA); // Double buffering, RGB…
WillieWonka
  • 115
  • 1
  • 11
0
votes
2 answers

opengl rendering pixels gives white lines

I am trying to render an image by drawing it pixel for pixel (yes I know this isn't the most efficient but its more for learning purposes) and I got the weird problem that it draws white lines like this: I use glut and visual studio 2013. This is…
WillieWonka
  • 115
  • 1
  • 11
0
votes
2 answers

Include hierarchy confusion

I have a confusion with the way #include directives work in C/C++. My first question is: If header A includes header B first and then header C, is everything defined in header B immediately available in header C ? e.g: /* FILE: header A */ #include…
Sepehr
  • 2,051
  • 19
  • 29
0
votes
1 answer

glRotated and glTranslated cannot execute right when the number is big

glRotated and glTranslated cannot execute right when the number is big for example, the below code can execute right xpos=1 zpos=1 glRotated(90, 1,0,0) glRotated(360, 0,1,0) glTranslated(-xpos,-ypos-2,-zpos) but this one cannot execute…
Null
  • 657
  • 2
  • 6
  • 15
0
votes
1 answer

Using GLUT in FLTK

My application consists of regular FLTK widgets (buttons, etc.), and an OpenGL window. My intention is to use GLUT to draw in this OpenGL Window. As per instructions here: You should be able to compile existing GLUT source code by including …
johngreen
  • 2,676
  • 5
  • 32
  • 47
0
votes
1 answer

GLUI controls do not appear but they have effect

I am developing graphic project with OpenGL and using freeglut and glew(v 1.11.0). I want to add sum UI controls with GLUI. I download the source code and build it with Microsoft Visual Studio 2012(I tried GLUI version both 2.35 and 2.36). Add lib…
onrrgn
  • 3
  • 1
0
votes
1 answer

How to rotate a cone around a line?

I have a line in 3d: void line() { glBegin(GL_LINES); glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-3.0f, 10.0f, 0); glVertex3f(7.0f, -10.0f, 0); glEnd(); } And a cone: void cone(GLdouble r, GLdouble h, int n) { GLdouble fi; …
Tool
  • 12,126
  • 15
  • 70
  • 120
0
votes
1 answer

Calling a freeglut function in PyOpenGL prints 'freeglut' and exits

Version: Python 2.7.6 on Ubuntu 14.04 >>> import OpenGL >>> import OpenGL.GLUT >>> import OpenGL.GLUT.freeglut >>> OpenGL.GLUT.freeglut.glutSetOption(OpenGL.GLUT.GLUT_ACTION_ON_WINDOW_CLOSE, OpenGL.GLUT.GLUT_ACTION_GLUTMAINLOOP_RETURNS) Running the…
wenderen
  • 161
  • 2
  • 7
0
votes
1 answer

qt, using freeglut, error with 'glutInit'

I've been trying to use freeglut in a Qt project. Unfortunately when I use some glut function like 'glutWireSphere' or 'glutWireTorus' I get an error: freeglut ERROR: Function called without first calling 'glutInit'. And when I try to run an…
user30935
  • 51
  • 1
  • 8
0
votes
0 answers

LNK2019 FreeGLUT/OpenGL issues (Library linking issues)

Well, I've looked at tons of people who have this exact same issue (more or less), but I can't seem to figure out what the issue is here. I'm trying to learn OpenGL, mostly in an effort to teach myself more about rendering and game development, and…
0
votes
1 answer

Freeglut Reshape callback

I am not using glutMainLoop() in my program but I am using glutMainLoopEvent() in a simple while loop. This is fine but the reshape callback is never called. I register my reshape event in the main(). Here's my source code: #include…
0
votes
1 answer

Odd OpenGL fragment shader behavior with gl_PointCoord

I'm trying to draw a 2 dimensional line the has a smooth gradient between two colors. My application allows me to click and drag, the first point of the line segment is the first click point, the second point of the line follows the mouse cursor…
user2278457
  • 315
  • 2
  • 9
0
votes
1 answer

Use FreeGLUT for OpenGL xCode projects on MacOS Mavericks

I'm trying to make an OpenGL application on MacOS X Mavericks. For this I'm using Glew, FreeGLUT (adding the due search paths on project settings and adding the linker flags also), and also the MacOS OpenGL framework. The problem is, as soon as I…
flapas
  • 583
  • 1
  • 11
  • 25