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

Visual Studio 2015: v120 vs v140?

FYI: Win10, x64 I started trying out Visual Studio 2015 today, and after figuring out how to get the C/C++ parts running I tried to load up a big personal project that uses the unofficial glsdk. I tried to build and got linker errors. It…
John Cox
  • 339
  • 1
  • 3
  • 15
5
votes
0 answers

Why freeglut3-dev doesn't provide .pc file for pkg-config?

Why latest Debian's Sid (Sid, which is after Debian Buster 10.0) testing repositories doesn't contain .pc file for pkg-config? Result of dpkg -L…
patryk.beza
  • 4,876
  • 5
  • 37
  • 56
5
votes
1 answer

OpenGL code not running : OpenGL GLX extension not supported by display

I have to run a code, it includes libraries GL/glut.h and GL/glew.h. The code gets compiled well, by the instruction: $ gcc test.c -lglut -lGLEW -lGL But when I run it, I get the following error: freeglut (./a.out): OpenGL GLX extension not…
roynalnaruto
  • 329
  • 2
  • 6
  • 17
5
votes
2 answers

MinGW and GLUT undefined reference to '_imp____glutInitWithExit@12'

I dabbled in Python for a year, and am starting c++, so I am a noob. I installed MinGW and had everything working fine until I installed freeglut. When I run the following code: #include int main() { return…
Frumples
  • 425
  • 1
  • 4
  • 18
5
votes
1 answer

How to create a Game Menu with States

I was and have been looking for an example on how to make a game menu. For example i want to have the application open to the menu. From there it would either open "play game" "Show Credits" "Exit". Everything i have seen so far is for popup…
Glen Morse
  • 2,437
  • 8
  • 51
  • 102
5
votes
1 answer

It's possible to implement EGL from a programmer perspective?

EGL looks like the worst documented Khronos project ever, I literally can't find nothing specific about this project but it looks promising and finally there is a standardized alternative to GLUT/FreeGlut. My point is, suppose that I want an EGL…
user1797612
  • 812
  • 6
  • 22
5
votes
2 answers

Developing OpenGL Applications Everywhere

I am studing OpenGL and I usually study in the laboratory in my university. My problem is that the computers in the university don't have the necessary libraries installed for me to study the programs, and I have only user permissions in these…
user1905910
  • 162
  • 1
  • 13
5
votes
2 answers

freeglut error LNK1104

In my project I want to use a freeglut library from the unofficial opengl sdk. I used Premake to generate build files for vs2010. Then I built all libraries (debug). In my project I set Additional Include Directories, Additional Library…
Irbis
  • 11,537
  • 6
  • 39
  • 68
5
votes
4 answers

To pass a pointer to a member function

I have an class with instance functions (or methods?). From within an instance, I try to pass pointers to those functions to a library. The library expects static functions. When I pass my pointers to the callback functions, the compiler complains…
AntoineG
  • 1,237
  • 4
  • 15
  • 25
5
votes
2 answers

Compiling Simple static OpenGL 4.0 program using MinGW, freeglut and glew

The problem is in the title, I'll try to list what I've already tried and so on below. First off, in my understanding, in order to use OpenGL 4.0 on windows you must extend and or bypass the default windows library as it only ships OpenGL 1.1. So we…
nixeagle
  • 1,002
  • 8
  • 17
4
votes
2 answers

undefined reference to Base::object linker error @ c++ w/ freeglut

I have this code /////////////////////////////////////Gnome.cpp file #include "Living.h" class Gnome:public Living{ private: public: Gnome(); void drawObjects(); }; Gnome::Gnome() { spriteImg = new Sprite("graphics/gnome.bmp");…
user1179444
  • 43
  • 1
  • 4
4
votes
5 answers

freeglut.dll missing

I am reading the OpenGl superbible, and on the very first triangle program it will not run. the program compiles just fine but when i run it, it gave me the error message freeglut.dll is missing from your computer. I downloaded that and put it in…
harryprotist
  • 45
  • 1
  • 2
  • 4
4
votes
3 answers

Using Objects into a Glut Display Function

i'm having trouble using an object in a glut DisplayFunction. class Modelisation { private: int hauteur, largeur, x, y; Camera *Cam; void DisplayFunction (); static void RedisplayFunction (int, int); public: Modelisation (int…
Athanase
  • 933
  • 9
  • 25
4
votes
2 answers

nixOS + Haskell + stack + OpenGL + freeglut

I have read NixOS, Haskell, opengl : problems with building and running openGL programs and all the other corresponding issues, but I can't get a simple Haskell gloss project (that used to work a few months ago) to work. Using a github project Try…
Turion
  • 5,684
  • 4
  • 26
  • 42
4
votes
1 answer

Problem when using glutStrokeString instead of glutBitmapString

I'm writing my first OpenGL-program (in C using freeglut). I have the following code in my display function, that works nicely and prints out a grey colored text: glColor3f(0.5f, 0.5f, 0.5f); glRasterPos2f(0,…
martin
  • 2,150
  • 1
  • 34
  • 48