Questions tagged as 'opengl'

1
answer

C ++ - X-axis motion (animation) - OpenGL

I've been trying to do a simple animation on the x-axis, where I have a chair and I've drawn it by several cubes, and in all those cubes I want to move the x-variable of them so they can move in that direction. He is already moving what happe...
asked by 28.05.2016 / 20:08
1
answer

Most suitable API - OpenGL ES 2.0 x Canvas x Drawable

Good morning, I would like to make an application for Android to do the following: display the floor of a house on the cell phone, and the user touching a room on the screen, the color of the room change. I'm familiarized with OpenGL ES 2.0...
asked by 18.01.2015 / 13:04
0
answers

Problems using GLEW with CMake and msys2

I am new to the C world and have been tempted to learn more about the ecosystem and to study some language libraries more thoroughly. I have setup on my Visual Studio 2017 and msys2 computer with the Mingw-w64 development packages installed....
asked by 05.12.2018 / 02:17
0
answers

Can not open or locate PDB file and DLL not loaded in VS2017. How do I solve it?

I installed Visual Studio Community 2017 and configured for use in OpenGl with the GLAD and GLFW libraries. Here I am trying to run the code from the Learn OpenGL, Hello Window website: #include <glad/glad.h> #include <GLFW/glfw3.h...
asked by 02.12.2018 / 19:16
0
answers

How do I make a circle jump up and down when I load in space?

I need to make a version of the game "Color Switch" in Visual Studio C ++ with Glut but I do not know how to make a geometric figure move. Any help is welcome. Below is the code for my circle #include <math.h> #include <GL/glu...
asked by 01.11.2018 / 20:27
0
answers

convert pixel to centimeter openGL

I need to change an object to where the mouse is clicked, I'm trying to do with a starting point. I already managed to capture the position of the mouse but it comes in pixel and I need that value in centimeter. Here is an excerpt of the code....
asked by 19.07.2018 / 15:50
0
answers

OpenGL 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 make rotations through the mouse. The code below generates a very large cylinder with the camera looking in the middle...
asked by 26.06.2018 / 05:18
0
answers

I'm learning Open GL and I want to be able to draw the image below, can anyone help with the code?

My greatest difficulty is being able to represent multiple images at different positions on the screen I would like to move the image by clicking any button on the keyboard. I currently have the following code: #include <windows....
asked by 10.06.2018 / 22:19
0
answers

"A reference to a non-static member must be relative to the specific object" when calling method of the c ++ class itself

I have a class where, within a non-static method, I want to make a call to another non-static call. However, in doing so, Visual Studio already gives this alert: "A reference to a non-static member must be relative to the specific object." Th...
asked by 14.05.2018 / 16:21
1
answer

C ++ Character buffer adding non-existent characters

Well, I have an application for android that uses OpenGL ES 3.1, I did the whole procedure to compile the shaders, I decided to put them in a separate folder in assets, to retrieve the content I'm using
asked by 04.05.2018 / 14:28