[info-performer] check for GL_EXTENSIONS

New Message Reply Date view Thread view Subject view Author view

From: Jürgen Gotschlich (juergen.gotschlich++at++dlr.de)
Date: 09/13/2002 02:26:56


Hi performers,

I want to check which GL_EXTENSIONS are available. But I only get empty
strings as result to glGetString.
And eventually I don't get any error messages from glGetError, even if I
call glGetString( 0xABCDEF ).
Does anybody know why? Do I missed out some initialisations ?

Here's my code :

int main( int argc, char *argv[] )
{
  GLenum e;
  GLubyte *ext;

  pfInit();
  pfuInit();
  pfiInit();

  ext = (GLubyte *)glGetString( GL_EXTENSIONS );
  while ((e=glGetError()) != GL_NO_ERROR) cout << "Error " << e <<
endl;

  cout << "ext: " << ext << endl;

  if( strstr((char *)ext,"GL_ARB_imaging" ) ) cout << "GL_ARB_imaging
supported !!!" << endl;
  if( strstr((char *)ext,"EXT_blend_minmax" ) ) cout <<
"EXT_blend_minmax supported !!!" << endl;
  if( strstr((char *)ext,"EXT_blend_subtract" ) ) cout <<
"EXT_blend_subtract supported !!!" << endl;

  ...
}

Thanks, Juergen

-- 
________________________________________________________________________

Jürgen Gotschlich email: juergen.gotschlich++at++dlr.de __/|_ Phone: +49(531)295-3248/2778 /_/_/_/ Fax : +49(531)295-2640 |/ DLR

Deutsches Zentrum für Luft-und Raumfahrt | German Aerospace Center Institut für Flugsystemtechnik | Inst. of Flight Research Abt. Flugsimulation | Flight Simulation Dep. Lilienthalplatz 7 | Lilienthalplatz 7 D-38108 Braunschweig | D-38108 Braunschweig, Germany ________________________________________________________________________


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Sep 13 2002 - 02:05:22 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.