March 2019
Intermediate to advanced
428 pages
10h 27m
English
Let's follow these steps to learn how to use textures in OpenGL:
QOpenGLContext* openGLContext;QOpenGLFunctions* openGLFunctions;QOpenGLShaderProgram* shaderProgram;QOpenGLVertexArrayObject* vao;QOpenGLBuffer* vbo_vertices;QOpenGLBuffer* vbo_uvs;QOpenGLTexture* texture;
void RenderWindow::initializeGL(){ openGLFunctions = openGLContext->functions(); glEnable(GL_DEPTH_TEST); glEnable(GL_TEXTURE_2D);
Read now
Unlock full access