Questions tagged as 'opengl'

0
answers

Texture in Sphere with Open GL

I'm trying to put a texture in a quadric object of glut in c ++ but for some reason I'm putting the texture in the background, I'm new with glut, if someone could help me. void drawScene(void){ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFE...
asked by 03.03.2017 / 01:09
0
answers

Textures are not displayed in OpenGL

I have a problem. I'm using Xcode and OpenGL for a graphing project. I find the following problem: The images are not shown on the screen. Only the picture where I want to place the texture is drawn. My code is as follows: Header: Image.hp...
asked by 26.03.2017 / 06:15
1
answer

Display huge texture

Greetings, I am working on a program developed in C ++, using QT and GDAL. The program now is able to show textures but if these are larger than 16384x16384 pixels I get the following error:    GLI | GL ERROR - Function glTextureStorage2DE...
asked by 29.09.2017 / 11:33
1
answer

OpenGL help glutMouseFun () function

I would like someone to help me or give me an explanation regarding a problem presented with the glutMouseFunc () function, I have created a class called Button class Button{ private: char *texto; int iniX; int iniY; int tam...
asked by 01.12.2018 / 23:07
1
answer

Functions of a class like callbacks in OpenGL c ++

I have had a problem in the development of a graphic engine using OpenGL. The fact is that I have defined the class DB in which I implement the method initContext(int argc, char** argv) in which I must make the corresponding calls...
asked by 21.12.2018 / 21:55
0
answers

How should the object be defined to behave as one?

I created a function using the OpenGl libraries to create a piece of Chess (the King's piece), what happens is that I first make the body by rotation, and in the end I create the cross as a sweep of the figure. But when plotted they behave like...
asked by 08.10.2018 / 00:27
0
answers

3D functions in java opengl

The question I have is how to make geometric figures by applying their mathematical formulas with java opengl, that is, assuming I want to make the hyperboloid with two sheets, whose formula is Should I do a for cycle inside the display fu...
asked by 25.08.2018 / 21:56
1
answer

Capture keyboard arrows in Qt

I have been doing a school project in which they asked me to create the 2048 game, I created it on the console line as a base, and then I did the graphic design, but when I wanted to implement it I found the problem that checked at the time of s...
asked by 12.03.2018 / 20:29
0
answers

Paint and delete opengl C ++ object?

Good, I edit the doubt in opengl in c ++ These are the main functions where my question is located (I have deleted the camera configuration code, lights and color buffers to simplify). The "drawRoom" and "drawMesa" functions combine primitive...
asked by 23.05.2017 / 16:40
1
answer

How VAOs work in OpenGL

I have tried to look through lots of tutorials and online documentation about HOVs because they cost me a lot to understand them, but it seems impossible. From what I understand, it is assumed that if you call glBindVertexArray, from there wh...
asked by 28.01.2017 / 19:35