24#ifndef _SO_GL_EXTENSION_H_
25#define _SO_GL_EXTENSION_H_
29#include <Inventor/STL/list>
38typedef int (WINAPI * PFNWGLDESCRIBEPIXELFORMATPROC) (
HDC hdc,
int iPixelFormat,
UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd);
40typedef int (WINAPI * PFNWGLSWAPBUFFERSPROC) (
HDC hdc);
42#define wglChoosePixelFormat SoGLExtension::m_wglChoosePixelFormat
43#define wglSetPixelFormat SoGLExtension::m_wglSetPixelFormat
44#define wglDescribePixelFormat SoGLExtension::m_wglDescribePixelFormat
45#define wglSwapBuffers SoGLExtension::m_wglSwapBuffers
50#pragma warning( push )
51#pragma warning(disable:4251)
698 static int getExtID(
const char *str);
701 static SbBool extSupported(
int contextID,
int ext);
708 static SbBool initClass();
713 static void exitClass();
718 static SbBool isInitialized();
721 static PFNWGLCHOOSEPIXELFORMATPROC m_wglChoosePixelFormat;
722 static PFNWGLSETPIXELFORMATPROC m_wglSetPixelFormat;
723 static PFNWGLDESCRIBEPIXELFORMATPROC m_wglDescribePixelFormat;
724 static PFNWGLSWAPBUFFERSPROC m_wglSwapBuffers;
732 static SbBool hasFullFloat32TextureSupport();
736 static SoGLWindow* createAndEnableFakeContext();
738 static std::list<char*> s_disabledList;
739 static SbBool s_initialized;
743 static SbPList* s_extensionList;
745 static int s_checkContext;
749#pragma warning( pop )
#define PIXELFORMATDESCRIPTOR
List of generic (void *) pointers.
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable spinloc...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Contains methods...
static SbBool isAvailable(const char *extension)
Returns true if the extension is available.
static SbBool isAvailable(const SbString &extension)
Returns true if the extension is available.
static void disableExtension(const SbString &extension)
Disable a specific extension in software.