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

Draw cylinder with defined center and axis in old opengl

I'm trying to draw a cylinder using freeglut's glutSolidCylinder in a position and axis that I give. What I want here is a function like this : void DrawCylinder(float radius,float height,Vector3 center,Vector3 axis) such that DrawCylinder(0.5,0.5,…
niceman
  • 2,653
  • 29
  • 57
-2
votes
1 answer

opengl menu called every time I right click the mouse

Here is my simple menu program. For testing purpose, i print the word "hello" every time i select the menu. But I don't understand why after i select an option in the menu, every time I right click the mouse, the word "hello" display again. I only…
-2
votes
2 answers

Box2D can't run testbed

I ran cmake and make on Box2D with success but when I try to run the Testbed the text below is displayed in the terminal but nothing else happens. freeglut (./Testbed): And after this I get back the prompt. Looks like OpenGL/freeglut is not…
user3511545
  • 71
  • 1
  • 6
-2
votes
1 answer

Blank white screen while pixel drawing using FreeGLUT and CUDA?

I'am out of ideas what is going on. Only i know, that freeglut is discarding my code for reasons i don't know. I initializing it: glutInit(argc, args); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE); glutInitWindowSize(wnd_width,…
TheLiverX
  • 1
  • 1
-2
votes
1 answer

How to use more than one shader program?

Using one shader program my code looks something like this: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); InitFunctions(); glUseProgram(ShaderProgram); //render objects glutSwapBuffers(); But I wanted to add another shader program but it…
MajesticHey
  • 128
  • 8
-2
votes
1 answer

Everything white in OpenGl, same code runs fine on another machine

I'm building a school project with OpenGl using glut, and I work both on my notebook (when not in home) and on my desktop. Both were fine, but all of a sudden, when I compile the code on my desktop, everything is white, while THE SAME CODE, runs…
-2
votes
1 answer

For anyone who understands OpenGL

I'm confused. I've been trying to start out with OpenGL, and I haven't had any success at all. details: I seem to have been trying to use Mesa 3D which isn't even strictly an official OpenGL implementation anyway. Does Mesa 3D even use the gpu? and…
Codesmith
  • 5,779
  • 5
  • 38
  • 50
-3
votes
1 answer

when I use OpenGL with glut, why it shows nothing when I close a window and reopen it?

I use freeglut to create windows, and the code goes like this: int window1, window2; GLfloat cube[] = { //cube point } init2() { //init shaders... //init vertex arrays with cube points... } void display2() { …
PandaChen
  • 11
  • 6
-3
votes
1 answer

Freeglut fgInitGL2: fghGenBuffers is NULL

On the glutCreateWindow this message appears - what can cause such problem? Here the code that i have: #include "pch.h" #include #include "include/glew.h" #include "include/glut.h" #include "include/freeglut.h" #include…
Dmitriy
  • 1
  • 1
1 2 3
40
41