QT OpenGL how do I bind a texture to a specific texture slot like I would in regular OpenGL
Unsolved
General and Desktop
-
wrote on 5 Mar 2022, 00:04 last edited by
this is what I would do in OpenGL
void Texture2D::bind(GLuint texUnit) { glClientActiveTexture(GL_TEXTURE0 + texUnit); glBindTexture(GL_TEXTURE_2D, mTexture); }
I want to be able to bind more than one texture.
I am told to look at:QOpenGLFunctions_1_4
This makes no sense. Could someone please help me when it comes to what to do with these things
-
Hi,
It's been a long time, but, are you porting your code to Qt or just wanting to keep using these methods directly ?
In the first case, QOpenGLTexture comes to mind.
Otherwise, the use of the QOpenGLFunctions classes would allow you to continue using these methods directly.
1/2