-/* $Id: multiarb.c,v 1.6 2000/05/23 23:21:00 brianp Exp $ */
+/* $Id: multiarb.c,v 1.7 2000/11/01 16:02:01 brianp Exp $ */
/*
* GL_ARB_multitexture demo
/*
* $Log: multiarb.c,v $
+ * Revision 1.7 2000/11/01 16:02:01 brianp
+ * print number of texture units
+ *
* Revision 1.6 2000/05/23 23:21:00 brianp
* set default window pos
*
static void Init( int argc, char *argv[] )
{
GLuint texObj[2];
+ GLint units;
const char *exten = (const char *) glGetString(GL_EXTENSIONS);
if (!strstr(exten, "GL_ARB_multitexture")) {
exit(1);
}
+ glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &units);
+ printf("%d texture units supported\n", units);
+
/* allocate two texture objects */
glGenTextures(2, texObj);