How to compile for Windows on Linux with gcc/g++?

I have written some effects in C++ (g++) using freeglut on Linux, and I compile them with g++ -Wall -lglut part8.cpp -o part8 So I was wondering if it is possible to have g++ make static...

gluPerspective was removed in OpenGL 3.1, any replacements?

I'm trying to read some OpenGL tutorials on the net. the problem is that I found some old ones that use gluPerspective(). gluPerspective was deprecated in OpenGL 3.0 and removed in 3.1. What...

OpenGL, how to set up GLSL version?

My system's default version for OpenGL and GLSL using freeglut is 4.1, also using glew there is no problem with its initialization, shader compilation and linking, and execution. This default...

Draw A Sphere With Opengl

I draw the sphere by OpenGL. This program can draw sphere when "SLIED = STACK". But It's doesn't work when "SLIED not equal STACK". I may be mistake "index array". I want to use VBO and...

GLFW get screen height/width?

Playing around with OpenGL for a while, using the freeglut library, I decided that I will use GLFW for my next training project instead, since I was told that GLUT was only designed for learning...

How to change freeglut main window icon in C++?

I have a DLL written in C++ that uses FreeGlut to visualize some data. I want to change the icon of the main (free)glut window. I've read that it is impossible, but in the docs I see: GLUT_ICON -...

What the OpenGL coordinates are? Ignore OpenGL window size

I just started trying to folow simple "draw cube" [openGl tutorial][1]. After final victory over getting OpenGL to work, I still have very veird results. My problem is that the objects tend to...

Glut and cuda stall for 100ms every second

I am working on a project that involves cuda and freeglut and I am trying to get every bit of juice out of it as possible. I have a loop that does some compute and then draw. I noticed from the...

Setting up GLEW,FREEGLUT

I'm setting up FREEGLUT and GLEW for Visual Studio2012 on Windows7 64bit. First of all, should I need to set up also GLUT? Second, I'm confused, in GLEW/lib and GLEW/bin there both Release and...

Installing FreeGLUT on OS X Mavericks

Now that OS X can use OpenGL 4+ I would like to begin learning more modern OpenGL. The tutorial I am following uses FreeGLUT as the windowing framework. While OS X has Apple's own adaption of...

MinGW and GLUT undefined reference to '[email protected]'

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...

How to install OpenGL libraries linux

Where do I get the OpenGL libraries from? I am using fedora but I don't know what ones I need to get. Is it just: sudo yum install freeglut-devel I already have the g++ and stuff. Is there any...

What is the difference between FreeGLUT vs GLFW?

My university started teaching a course which includes OpenGL programming. They make us use FreeGLUT to create a window and a context for OpenGL, but I found an online course at lynda.com about...

Where is the documentation for glutInitContextVersion?

The FreeGLUT API documentation does not include an entry for glutInitContextVersion and when I google for it, all I find are a list of questions which don't directly address its usage or...

Multi-device OpenCL/OpenGL context

I'm currently writing a smoke simulation in OpenCL where I use OpenGL (freeglut) to visualize the smoke. My computer is a Asus Zenbook with a Intel i7 CPU and a Intel HD 4000 GPU which are both...

Error1 error LNK1107: invalid or corrupt file: cannot read at 0x2B0

I am new in opengl and i have no idea what this error means. I am using Visual Studio 2012 > C++ > Empty Project. I Follow these steps in other pc thats work for me but i am doing this in my pc i...

error undefined reference to '_setargv'

The issue I'm getting is: undefined reference to 'set_argv' I've tried just about everything I could think of, yet nothing appears to work. I followed the installation guide step by step on...

LINK : fatal error LNK1104: cannot open file 'freeglut.lib'

using visual studio 2015 already added in Linker -> General -> Addtional Library Dependencies and Linker -> Input -> Additional Dependencies Still recieving error LINK : fatal error LNK1104:...

Cannot find MSVCP140D_APP.dll

I am trying to make a simple rendering engine using opengl & freeglut. I am doing the rendering engine part in a seperate c++ project under the same solution and compiling it as a DLL, then using...

How can I install MP4Box on CentOS7.3

I can't install MP4Box on CentOS7.3. CentOS Linux release 7.3.1611 (Core) I attempted to install with reference to the following...

How does glReadPixels works?

I have just started using OpenGL i was writing a program for boundary fill algorithm ,i used glClearColor to change the background colour to red but when i am reading a pixel color using...

freeglut (something): failed to open display ''

I compiled a C++ code under Linux (Ubuntu) and everything is fine as far as I connect a monitor to my PC. My code shows some graphics and then it saves their screenshots. The runtime graphic is...

decomposition of ellipse to triangles with openGL (c++)

I have to do my homework (draw a butterfly in OpenGL) for university. Currently I'm working on the body of the butterfly, which is a simple ellipse (it will be a 2D game). I have to draw this...

Failed to compile tex in r markdown

I wanna make use of an R markdown and I get this message when I run bookdown::render_book("index.Rmd", "bookdown::pdf_book"): "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS...

PyOpenGL-3.1.5-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform

For a Python project I need PyOpenGL. I have installed it with the PyCharm IDE. When I ran an OpenGL program to test the installation, the following error message came...

How can I have freeglut 3.2.1 and GLEW 2.1.0 run on MinGW-w64?

I'm a bit new to programming, and I'm trying to get an OpenGL program to run on a X64bit C++ compiler. The code worked on MinGW - Minimalist GNU for Windows with the freeglut 3.0.0 MinGW Package...

Move camera in continuous/flowing way using keyboard and mouse?

I created a simple 3D cube with a camera. I am attempting to implement zooming, orbiting and panning of the cube object using a keyboard modifier and mouse input. The requirements for this...

How to properly configure vcpkg C++ includePath on macOS VS Code?

I installed vcpkg with Homebrew. I followed to instructions on official vcpkg docs. I used this command: vcpkg integrate project and got the following message: Applied user-wide integration for...

How to link to FreeGlut instead of Glut on macOS using cmake and find_package?

I have the latest version of macOS Big Sur, running intel based cpu, clang12, cmake 3.19 and brew. I have installed freeglut via brew. However whenever I called find_package(GLUT) it always finds...

pyOpenGL GLUT window function doesn't close properly

This minimum working example of an environment with PyOpenGl and GLUT presents the same issue I am having on bigger code. Creating/closing continuously an instance of this class, increases memory...

Relevant tags