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

FreeGLUT 3.0.0 Visual Studio solution?

Where is the Visual Studio solution for FreeGLUT 3.0.0? I know the 2.8.1 has one, but 3.0.0 does not. I would really like to use the latest version.
Josiah L.
  • 302
  • 1
  • 4
  • 21
0
votes
2 answers

detect mouse clicks in OpenGL in C

Is there any way that I can detect mouse click position by not using glutMouseFunc()? All examples that I found online getting mouse click by using glutMouseFunc(). However, I don't want the detect mouse click function always active. I want to…
0
votes
0 answers

Problems with Frambuffer Object - limitation related to my screen resolution

I need to have an image as output of my code (dimension: 3507x3281) composed by two triangles (upper-left corner and lower-right corner), each triangle will give me one different color/image on my output. I read both images and bound them with 2…
ricãO
  • 61
  • 1
  • 10
0
votes
2 answers

Learning OpenGL with glew and freeglut; but there is an issue

I am using Visual Studio 2013, and used nuget to install "glew" and "freeglut". I am following a course, and these instructions for installation: http://in2gpu.com/2014/10/15/setting-up-opengl-with-visual-studio/ I did get confused along the way,…
Max Khan
  • 21
  • 10
0
votes
0 answers

color check condition in glut in c++

I am making a game with glut in c++ and I want to write a condition that if at a certan point (coordinate) the color in the canvas is black then my object is supposed to move, otherwise, it stays at its place. I was hoping if I could get the syntax…
noobkid
  • 17
  • 7
0
votes
0 answers

undefined symbols for architecture x86_64 "glutMainLoopEvent"

I'm trying to compile some linux code which uses freeglut on OS X. I have installed freeglut using homebrew but am now getting a bunch of warnings about having both gl.h and gl3.h, but more worryingly, I'm getting this linker error: Undefined…
quant
  • 21,507
  • 32
  • 115
  • 211
0
votes
2 answers

gluCylinder vs glutSolidCylinder

Though I know gluCylinder is somewhat old(and glu too) and glut is still there(through freeglut) but I saw those two and wondering what's the difference ? besides that gluCylinder requires that you define a Quadric, and what's faster ? .
niceman
  • 2,653
  • 29
  • 57
0
votes
1 answer

Using SDL to make a simple game, struggling with linking everything together

I would like to attempt to make a simple game in c++. So I found really cool series about how to make a game but the creator didn't include how to install different libraries etc. So, in the tutorials, he gives us this…
Macko
  • 360
  • 2
  • 11
0
votes
2 answers

when removing glLoadIdentity screen goes blank

I have a camera class and a Vector3 class(obvious what they mean), the Vector3 class constructor takes three float arguments each has a default value of zero, so calling Vector3() is equivalent to Vector3(0,0,0). The camera class constructor also…
niceman
  • 2,653
  • 29
  • 57
0
votes
2 answers

Visual Studio freeglut/glew error ("missing from computer")

Long story short: I'm at home trying to run a project I've been tinkering with in school (OpenGL). When trying to run the unchanged program, I get errors saying freeglut.dll is missing. The thing is: I have freeglut and glew on my computer I am…
Skurt
  • 13
  • 1
  • 4
0
votes
1 answer

Dispalying Text in MFC application using Opengl

I am newbie to OpenGL and I am trying to create a simple application that contains a viewport,3d model and display some text. I never used glut window and would like to use MFC window for the above functionality. The viewport and 3d model work fine…
kirubha
  • 13
  • 5
0
votes
2 answers

OpenGL, GLUT, Cygwin - failed to open display ''

My "CMakeList.txt" file cmake_minimum_required(VERSION 3.1) project(butler) ######################################################### # FIND GLUT ######################################################### find_package(GLUT…
GFB
  • 345
  • 1
  • 5
  • 15
0
votes
1 answer

Using OpenGL with Visual Studio 2013 Express

To give you an idea of what I am really trying to do. My goal is to create a c++ program in Visual Studio and using OpenGl display a blackscreen and a white dot in the middle of the screen. Before I can even get to the coding part though, I have to…
0
votes
2 answers

Visual C++ with OpenGL: Failing to use GLUT

I am trying to run a C project in Visual Studio 2013, with GLUT. After some readings over the web, I tried with freeglut, but I get the following error when trying to run my project: 1>LINK : fatal error LNK1104: cannot open file…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
0
votes
1 answer

OpenGL - How to draw multiple different 2D shapes using pop-up menu?

I'm trying to make a simple openGL application which creates shapes using mouse clicks. The shape required is selected using a pop-up menu opened using the right mouse button. Currently I have rectangle working and also a simple paint-esque function…
JengaBlock
  • 53
  • 2
  • 9