Most voted "opengl" questions
This tag is used for issues related to the Opengl graphical API, used in computer graphics, for development of graphics applications, 3D environments, games, among others.
Learn more…66 questions
Sort by count of
-
0
votes0
answers176
viewsI am using the Opengl lib, but in the compilation gcc is returned indefinite reference, could anyone help?
#include <GL/gl.h> #include <GL/glut.h> void reshape(int w, int h) { glViewport(0, 0, w, h); /* Establish viewing area to cover entire window.…
-
0
votes1
answer89
viewsOpengl Unbind Texture?
I have a list of objects; Each object has different amounts of texture; When I do glBindTexture 2 textures (fuzzy and specular) to an object, it can happen that the next object can have only 1…
-
0
votes1
answer701
viewsThread - Shared Memory Access Violation
I use a library to retrieve data from an Image (in unsigned char*), and use it to allocate to an Opengl Buffer (Texture). Since the image can be large, Opengl by default creates another thread to…
-
0
votes1
answer235
viewsWhy is it impossible to use Opengl in Qt 5?
Probably, Opengl is the only thing I can’t use in Qt, maya and 3ds and other Autodesk programs use opengl in Qt, but no tutorial or example that works. I already created a class for the widget based…
-
0
votes1
answer86
viewsC++ Character buffer adding no characters
Well, I have an application for android that uses Opengl ES 3.1, I did all the procedure to compile the shaders, I decided to put them in a separate folder in Assets, to recover the content I am…
-
0
votes0
answers756
views"A reference to a non-static member must be relative to the specific object" when calling class c++ method itself
I have a class where, within a non-static method, I want to make a call to another non-static one as well. However, by doing so, Visual Studio already gives this warning: "A reference to a…
-
0
votes0
answers193
viewsI am learning Open GL and I want to be able to draw the image below, can anyone help in the code?
My biggest difficulty is being able to represent several images in different positions on the screen I would like to move the image by clicking a button on the keyboard. I currently have the…
openglasked 6 years, 6 months ago Gabriel Manuel 153 -
0
votes0
answers576
viewsOpengl 3D cylinder and lookat
Hello, I would like to know if there is a problem in the code below. I need to draw a cylinder in the center of the window and rotate through the mouse. The code below generates a very large…
-
0
votes1
answer81
viewsHow do I make a circle jump up and down when I press into space?
I need to make a version of the game "Color Switch" in Visual Studio C++ with Glut but I don’t know how to make a geometric figure move. Any help is welcome. Below is the code of my circle #include…
-
0
votes1
answer177
viewsUnable to locate -lGL
I’m running the default Codeblocks code for Opengl on Ubuntu: /* * GLUT Shapes Demo * * Written by Nigel Stewart November 2003 * * This program is test harness for the sphere, cone * and torus…
-
0
votes1
answer214
viewsHow do I make 3D work on pyglet?
I was trying to create using Opengl, Python and pyglet, a flat triangle in a 3D space, I saw some tutorials on the internet, some videos on Youtube, and in the end I wrote this code down there, the…
-
0
votes1
answer85
viewsHow does Modern Opengl work?
I already studied Opengl, and now I was reading Modern Opengl, I was watching some videos on Youtube and some tutorials on the internet and I wrote this code: import pyglet, numpy, ctypes from…
-
0
votes1
answer314
viewsError to compile Opengl code
Good Afternoon, I use linux and I’m learning OpenGL, but when I go compile my code for that mistake: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':…
-
0
votes1
answer62
viewsWhat can make the texture disappear in Opengl?
I’m using a flame engine Engo, and made a Fork and I’m adding some things and at the same time trying to learn more about Opengl. As it is a graphic question there is how to put an image of what is…
-
0
votes0
answers29
viewsI cannot compile glfw with a Makefile
Hello, a few days ago I felt like learning opengl, and discovered glfw and Glad. I decided to use them to make a little game. Most tutorials nowadays only talk about how to use them in Visual…
-
-1
votes1
answer29
viewsHow to plot graphics and images . png in the same window with openGL and SDL
I have done some search, in manuals and such on google however I would like to know how to adapt my code below to plot a chart (line for example) along with a file image .png. I do not know where I…