Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 687:6bdc2b7032ea
prev667:0e1ac8da75d9
next700:4650d0c7f6f9
author nkeynes
date Sat Jun 14 11:54:15 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Change colour params to float
Convert background processing over to scene structure (fixes some depth issues as well)
Add color unclamp when supported
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.c Sat Apr 19 02:39:37 2008 +0000
1.2 +++ b/src/pvr2/glutil.c Sat Jun 14 11:54:15 2008 +0000
1.3 @@ -16,6 +16,7 @@
1.4 * GNU General Public License for more details.
1.5 */
1.6 #include <string.h>
1.7 +#include <glib/gstrfuncs.h>
1.8 #include "pvr2/glutil.h"
1.9
1.10 gboolean isGLSecondaryColorSupported()
1.11 @@ -75,3 +76,20 @@
1.12 }
1.13 return FALSE;
1.14 }
1.15 +
1.16 +void glPrintInfo( FILE *out )
1.17 +{
1.18 + const GLubyte *extensions = glGetString(GL_EXTENSIONS);
1.19 + gchar **ext_split = g_strsplit(extensions, " ", 0);
1.20 + unsigned int i;
1.21 +
1.22 + fprintf( out, "GL Vendor: %s\n", glGetString(GL_VENDOR) );
1.23 + fprintf( out, "GL Renderer: %s\n", glGetString(GL_RENDERER) );
1.24 + fprintf( out, "GL Version: %s\n", glGetString(GL_VERSION) );
1.25 +
1.26 + fprintf( out, "Supported GL Extensions:\n" );
1.27 + for( i=0; ext_split[i] != NULL; i++ ) {
1.28 + fprintf( out, " %s\n", ext_split[i] );
1.29 + }
1.30 + g_strfreev(ext_split);
1.31 +}
.