VTK
|
Go to the source code of this file.
Enumerations | |
enum | DriverGLVendorIdType { DRIVER_VENDOR_UNKNOWN =0, DRIVER_VENDOR_ATI, DRIVER_VENDOR_NVIDIA, DRIVER_VENDOR_INTEL, DRIVER_VENDOR_MESA, DRIVER_VENDOR_MICROSOFT } |
Functions | |
virtual void | Update () |
virtual int | ExtensionSupported (const char *name) |
virtual void | LoadExtension (const char *name) |
virtual int | LoadSupportedExtension (const char *name) |
virtual void | LoadCorePromotedExtension (const char *name) |
virtual void | LoadAsARBExtension (const char *name) |
virtual bool | DriverGLRendererIsOSMesa () |
vtkOpenGLExtensionManager () | |
virtual | ~vtkOpenGLExtensionManager () |
virtual void | InitializeDriverInformation () |
virtual void | ReadOpenGLExtensions () |
virtual int | SafeLoadExtension (const char *name) |
vtkRenderWindow * | GetRenderWindow () |
virtual void | SetRenderWindow (vtkRenderWindow *renwin) |
virtual char * | GetExtensionsString () |
virtual vtkOpenGLExtensionManagerFunctionPointer | GetProcAddress (const char *fname) |
virtual int | GetDriverVersionMajor () |
virtual int | GetDriverVersionMinor () |
virtual int | GetDriverVersionPatch () |
virtual int | GetDriverGLVersionMajor () |
virtual int | GetDriverGLVersionMinor () |
virtual int | GetDriverGLVersionPatch () |
virtual bool | DriverIsATI () |
virtual bool | DriverIsNvidia () |
virtual bool | DriverIsIntel () |
virtual bool | DriverIsMesa () |
virtual bool | DriverIsMicrosoft () |
virtual bool | DriverVersionIs (int major) |
virtual bool | DriverVersionIs (int major, int minor) |
virtual bool | DriverVersionIs (int major, int minor, int patch) |
virtual bool | DriverVersionAtLeast (int major) |
virtual bool | DriverVersionAtLeast (int major, int minor) |
virtual bool | DriverVersionAtLeast (int major, int minor, int patch) |
virtual bool | DriverGLVersionIs (int major, int minor, int patch) |
virtual bool | DriverGLVersionIs (int major, int minor) |
virtual bool | DriverGLRendererIs (const char *str) |
virtual bool | DriverGLRendererHas (const char *str) |
virtual bool | DriverGLRendererHasToken (const char *str) |
virtual const char * | GetDriverGLVendor () |
virtual const char * | GetDriverGLVersion () |
virtual const char * | GetDriverGLRenderer () |
bool | GetIgnoreDriverBugs (const char *description) |
virtual void | SetIgnoreDriverBugs (bool) |
virtual void | IgnoreDriverBugsOn () |
virtual void | IgnoreDriverBugsOff () |
Variables | |
int | OwnRenderWindow |
char * | ExtensionsString |
vtkTimeStamp | BuildTime |
std::string | DriverGLVersion |
int | DriverGLVersionMajor |
int | DriverGLVersionMinor |
int | DriverGLVersionPatch |
std::string | DriverGLVendor |
std::string | DriverGLRenderer |
int | DriverVersionMajor |
int | DriverVersionMinor |
int | DriverVersionPatch |
DriverGLVendorIdType | DriverGLVendorId |
bool | IgnoreDriverBugs |
vtkWeakPointer< vtkRenderWindow > | RenderWindow |
|
protected |
Enumerator | |
---|---|
DRIVER_VENDOR_UNKNOWN | |
DRIVER_VENDOR_ATI | |
DRIVER_VENDOR_NVIDIA | |
DRIVER_VENDOR_INTEL | |
DRIVER_VENDOR_MESA | |
DRIVER_VENDOR_MICROSOFT |
Definition at line 339 of file vtkOpenGLExtensionManager.h.
vtkRenderWindow* GetRenderWindow | ( | ) |
|
virtual |
|
virtual |
Updates the extensions string.
|
virtual |
Returns a string listing all available extensions. Call Update first to validate this string.
|
virtual |
Returns true if the extension is supported, false otherwise.
|
virtual |
Returns a function pointer to the OpenGL extension function with the given name. Returns NULL if the function could not be retrieved.
|
virtual |
Loads all the functions associated with the given extension into the appropriate static members of vtkgl. This method emits a warning if the requested extension is not supported. It emits an error if the extension does not load successfully.
|
virtual |
Returns true if the extension is supported and loaded successfully, false otherwise. This method will "fail silently/gracefully" if the extension is not supported or does not load properly. It emits neither warnings nor errors. It is up to the caller to determine if the extension loaded properly by paying attention to the return value.
|
virtual |
Loads all the functions associated with the given core-promoted extension into the appropriate static members of vtkgl associated with the OpenGL version that promoted the extension as a core feature. This method emits a warning if the requested extension is not supported. It emits an error if the extension does not load successfully. For instance, extension GL_ARB_multitexture was promoted as a core feature into OpenGL 1.3. An implementation that uses this feature has to (IN THIS ORDER), check if OpenGL 1.3 is supported with ExtensionSupported("GL_VERSION_1_3"), if true, load the extension with LoadExtension("GL_VERSION_1_3"). If false, test for the extension with ExtensionSupported("GL_ARB_multitexture"),if true load the extension with this method LoadCorePromotedExtension("GL_ARB_multitexture"). If any of those loading stage succeeded, use vtgl::ActiveTexture() in any case, NOT vtgl::ActiveTextureARB(). This method avoids the use of if statements everywhere in implementations using core-promoted extensions. Without this method, the implementation code should look like:
Thanks to this method, the code looks like:
|
virtual |
Similar to LoadCorePromotedExtension(). It loads an EXT extension into the pointers of its ARB equivalent.
|
virtual |
Return the driver's version parts. This may be used for fine grained feature testing.
Definition at line 238 of file vtkOpenGLExtensionManager.h.
|
virtual |
Return the driver's version parts. This may be used for fine grained feature testing.
Definition at line 239 of file vtkOpenGLExtensionManager.h.
|
virtual |
Return the driver's version parts. This may be used for fine grained feature testing.
Definition at line 240 of file vtkOpenGLExtensionManager.h.
|
virtual |
Get GL API version that the driver provides. This is often different than the GL version that VTK recognizes so only use this for identifying a specific driver.
Definition at line 247 of file vtkOpenGLExtensionManager.h.
|
virtual |
Get GL API version that the driver provides. This is often different than the GL version that VTK recognizes so only use this for identifying a specific driver.
Definition at line 248 of file vtkOpenGLExtensionManager.h.
|
virtual |
Get GL API version that the driver provides. This is often different than the GL version that VTK recognizes so only use this for identifying a specific driver.
Definition at line 249 of file vtkOpenGLExtensionManager.h.
|
virtual |
Test's for common implementors of rendering drivers. This may be used for fine grained feature testing. Note: DriverIsMesa succeeds for OS Mesa, use DriverGLRendererIsOSMessa to differentiate.
|
virtual |
Test's for common implementors of rendering drivers. This may be used for fine grained feature testing. Note: DriverIsMesa succeeds for OS Mesa, use DriverGLRendererIsOSMessa to differentiate.
|
virtual |
Test's for common implementors of rendering drivers. This may be used for fine grained feature testing. Note: DriverIsMesa succeeds for OS Mesa, use DriverGLRendererIsOSMessa to differentiate.
|
virtual |
Test's for common implementors of rendering drivers. This may be used for fine grained feature testing. Note: DriverIsMesa succeeds for OS Mesa, use DriverGLRendererIsOSMessa to differentiate.
|
virtual |
Test's for common implementors of rendering drivers. This may be used for fine grained feature testing. Note: DriverIsMesa succeeds for OS Mesa, use DriverGLRendererIsOSMessa to differentiate.
Test for a specific driver version.
|
virtual |
Test for driver version greater than or equal to the named version.
Test for driver version greater than or equal to the named version.
Test for driver version greater than or equal to the named version.
Test for the driver's GL version as reported in its GL_VERSION string. This is intended for driver identification only, use ExtensionSuppported to test for VTK support of a specific GL version.
Test for the driver's GL version as reported in its GL_VERSION string. This is intended for driver identification only, use ExtensionSuppported to test for VTK support of a specific GL version.
|
virtual |
Test for a specific renderer. This could be used in some cases to identify the graphics card or specific driver. Use HasToken to prevent false matches eg. avoid GeForce4 matching GeForce400
|
virtual |
Test for a specific renderer. This could be used in some cases to identify the graphics card or specific driver. Use HasToken to prevent false matches eg. avoid GeForce4 matching GeForce400
|
virtual |
Test for a specific renderer. This could be used in some cases to identify the graphics card or specific driver. Use HasToken to prevent false matches eg. avoid GeForce4 matching GeForce400
|
virtual |
Test for Mesa's offscreen renderer.
|
virtual |
Get the OpenGL version, vendor and renderer strings. These can be used to idnetify a specific driver.
Definition at line 300 of file vtkOpenGLExtensionManager.h.
|
virtual |
Get the OpenGL version, vendor and renderer strings. These can be used to idnetify a specific driver.
Definition at line 301 of file vtkOpenGLExtensionManager.h.
|
virtual |
Get the OpenGL version, vendor and renderer strings. These can be used to idnetify a specific driver.
Definition at line 302 of file vtkOpenGLExtensionManager.h.
bool GetIgnoreDriverBugs | ( | const char * | description | ) |
When set known driver bugs are ignored during driver feature detection. This is used to evaluate the status of a new driver release to see if the bugs have been fixed. The function takes a description argument which, is sent to VTK's warning stream when the ignore flag is set. This makes the test output searchable for tests which have problems with certain drivers. The CMakeLists variable VTK_IGNORE_GLDRIVER_BUGS can be used to set this at build time. Default OFF.
|
virtual |
When set known driver bugs are ignored during driver feature detection. This is used to evaluate the status of a new driver release to see if the bugs have been fixed. The function takes a description argument which, is sent to VTK's warning stream when the ignore flag is set. This makes the test output searchable for tests which have problems with certain drivers. The CMakeLists variable VTK_IGNORE_GLDRIVER_BUGS can be used to set this at build time. Default OFF.
|
virtual |
When set known driver bugs are ignored during driver feature detection. This is used to evaluate the status of a new driver release to see if the bugs have been fixed. The function takes a description argument which, is sent to VTK's warning stream when the ignore flag is set. This makes the test output searchable for tests which have problems with certain drivers. The CMakeLists variable VTK_IGNORE_GLDRIVER_BUGS can be used to set this at build time. Default OFF.
|
virtual |
When set known driver bugs are ignored during driver feature detection. This is used to evaluate the status of a new driver release to see if the bugs have been fixed. The function takes a description argument which, is sent to VTK's warning stream when the ignore flag is set. This makes the test output searchable for tests which have problems with certain drivers. The CMakeLists variable VTK_IGNORE_GLDRIVER_BUGS can be used to set this at build time. Default OFF.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Wrap around the generated vtkgl::LoadExtension to deal with OpenGL 1.2 and its optional part GL_ARB_imaging. Also functions like glBlendEquation() or glBlendColor() are optional in OpenGL 1.2 or 1.3 and provided by the GL_ARB_imaging but there are core features in OpenGL 1.4.
int OwnRenderWindow |
Definition at line 324 of file vtkOpenGLExtensionManager.h.
char* ExtensionsString |
Definition at line 325 of file vtkOpenGLExtensionManager.h.
vtkTimeStamp BuildTime |
Definition at line 327 of file vtkOpenGLExtensionManager.h.
std::string DriverGLVersion |
Definition at line 330 of file vtkOpenGLExtensionManager.h.
int DriverGLVersionMajor |
Definition at line 331 of file vtkOpenGLExtensionManager.h.
int DriverGLVersionMinor |
Definition at line 332 of file vtkOpenGLExtensionManager.h.
int DriverGLVersionPatch |
Definition at line 333 of file vtkOpenGLExtensionManager.h.
std::string DriverGLVendor |
Definition at line 334 of file vtkOpenGLExtensionManager.h.
std::string DriverGLRenderer |
Definition at line 335 of file vtkOpenGLExtensionManager.h.
int DriverVersionMajor |
Definition at line 336 of file vtkOpenGLExtensionManager.h.
int DriverVersionMinor |
Definition at line 337 of file vtkOpenGLExtensionManager.h.
int DriverVersionPatch |
Definition at line 338 of file vtkOpenGLExtensionManager.h.
DriverGLVendorIdType DriverGLVendorId |
Definition at line 348 of file vtkOpenGLExtensionManager.h.
bool IgnoreDriverBugs |
Definition at line 349 of file vtkOpenGLExtensionManager.h.
vtkWeakPointer<vtkRenderWindow> RenderWindow |
Definition at line 366 of file vtkOpenGLExtensionManager.h.