2001-10-04 23:12:57 +08:00
|
|
|
//C++ header - Open Scene Graph - Copyright (C) 1998-2001 Robert Osfield
|
|
|
|
//Distributed under the terms of the GNU Library General Public License (LGPL)
|
|
|
|
//as published by the Free Software Foundation.
|
|
|
|
|
2001-09-20 05:19:47 +08:00
|
|
|
#ifndef OSG_GLEXTENSIONS
|
|
|
|
#define OSG_GLEXTENSIONS 1
|
|
|
|
|
|
|
|
#include <osg/Export>
|
|
|
|
|
|
|
|
namespace osg {
|
|
|
|
|
|
|
|
/** return true if OpenGL "extension" is supported.
|
|
|
|
* note: Must only called within a valid OpenGL context,
|
2001-09-29 04:10:41 +08:00
|
|
|
* undefined behavior may occur otherwise.
|
2001-09-20 05:19:47 +08:00
|
|
|
*/
|
|
|
|
SG_EXPORT extern const bool isGLExtensionSupported(const char *extension);
|
|
|
|
|
|
|
|
/** return the address of the specified OpenGL function.
|
|
|
|
* return NULL if function not supported by OpenGL library.
|
|
|
|
*/
|
|
|
|
SG_EXPORT extern void* getGLExtensionFuncPtr(const char *funcName);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|