FBO Formats?

Started by
1 comment, last by Enalis 13 years, 1 month ago
I've been doing a lot of work on different machines and I'm realizing that I may have to do a better job at detecting possible FBO pixel formats... or rather start doing so.

My question is... how?

All I get is FBO Unsupported? How am I supposed to know which formats my video card supports?
Douglas Eugene Reisinger II
Projects/Profile Site
Advertisement
There is no way to query which combination a GPU supports through OpenGL AFAIK.
You can either consult the documentation provided by nVidia and ATI/AMD or you can test a variety of formats (which is what I do).
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
Rough, well thanks for the help. I'll just do tests like you do, which I assume is a common answer to this dilemma.
Douglas Eugene Reisinger II
Projects/Profile Site

This topic is closed to new replies.

Advertisement