View Full Version : Maximal texture size in OpenGL?

23rd September 2011, 10:57

I am using textures with the QGlWidget to show digitized images on world geometry and nearly everything works fine.
(Qt 4.4.3, VS 2008, Windows 7)
The only issue I have is the size of the images, for that I have questions.

-> Is there a size limit for texture images?
-> If yes, is it possible to change the limit to fit my needs? Or query the limits.

After reading the QImage I bind it to a name
GLuint tid = widget()->bindTexture(image);

In the paintGL I show it using
glBindTexture(GL_TEXTURE_2D, tid);

Another question is:
-> Is it there a possibility to use textures over RDP (Remote Desktop)?

Greetings Uwe

23rd September 2011, 11:28
1) Yes, it depends on the underlying graphics hardware:

GLint texSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize);
2) I don't think so, it is hardware-dependent.
3) No idea, sorry.

23rd September 2011, 11:50
Thank you stampede,

is the size I'll get for one texture image or for all textures if I use more than one?

24th September 2011, 09:12
I think this is the size limit for a single texture.