56#include "vtkRenderingOpenGLModule.h"
129#ifndef vtkOpenGLExtensionManager_h
130#define vtkOpenGLExtensionManager_h
141 typedef int (WINAPI *vtkOpenGLExtensionManagerFunctionPointer)(void);
143 typedef void (*vtkOpenGLExtensionManagerFunctionPointer)(void);
a simple class to control print indentation
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Interface class for querying and using OpenGL extensions.
create a window for renderers to draw into
record modification and/or execution time
virtual int GetDriverVersionPatch()
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int DriverGLVersionPatch
Updates the extensions string.
virtual void ReadOpenGLExtensions()
Updates the extensions string.
virtual int GetDriverGLVersionMinor()
Updates the extensions string.
char * ExtensionsString
Updates the extensions string.
virtual bool DriverIsNvidia()
Updates the extensions string.
int DriverGLVersionMinor
Updates the extensions string.
virtual bool DriverGLRendererIs(const char *str)
Test for a specific renderer.
vtkTimeStamp BuildTime
Updates the extensions string.
std::string DriverGLVendor
Updates the extensions string.
virtual vtkOpenGLExtensionManagerFunctionPointer GetProcAddress(const char *fname)
Returns a function pointer to the OpenGL extension function with the given name.
virtual bool DriverIsATI()
Test's for common implementors of rendering drivers.
virtual const char * GetDriverGLVendor()
Get the OpenGL version, vendor and renderer strings.
virtual bool DriverVersionAtLeast(int major)
Test for driver version greater than or equal to the named version.
virtual int GetDriverGLVersionMajor()
Get GL API version that the driver provides.
virtual const char * GetDriverGLRenderer()
Updates the extensions string.
int OwnRenderWindow
Updates the extensions string.
int DriverGLVersionMajor
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual bool DriverGLRendererHasToken(const char *str)
Updates the extensions string.
virtual int GetDriverGLVersionPatch()
Updates the extensions string.
virtual void InitializeDriverInformation()
Updates the extensions string.
virtual bool DriverIsIntel()
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void LoadExtension(const char *name)
Loads all the functions associated with the given extension into the appropriate static members of vt...
virtual int SafeLoadExtension(const char *name)
Wrap around the generated vtkgl::LoadExtension to deal with OpenGL 1.2 and its optional part GL_ARB_i...
int DriverVersionMinor
Updates the extensions string.
virtual int LoadSupportedExtension(const char *name)
Returns true if the extension is supported and loaded successfully, false otherwise.
virtual bool DriverGLRendererHas(const char *str)
Updates the extensions string.
DriverGLVendorIdType DriverGLVendorId
Updates the extensions string.
vtkOpenGLExtensionManager()
Updates the extensions string.
virtual bool DriverGLVersionIs(int major, int minor, int patch)
Test for the driver's GL version as reported in its GL_VERSION string.
virtual int GetDriverVersionMinor()
Updates the extensions string.
virtual bool DriverVersionIs(int major)
Test for a specific driver version.
virtual bool DriverIsMicrosoft()
Updates the extensions string.
virtual bool DriverIsMesa()
Updates the extensions string.
vtkRenderWindow * GetRenderWindow()
Updates the extensions string.
virtual bool DriverGLRendererIsOSMesa()
Test for Mesa's offscreen renderer.
virtual void LoadCorePromotedExtension(const char *name)
Loads all the functions associated with the given core-promoted extension into the appropriate static...
std::string DriverGLRenderer
Updates the extensions string.
std::string DriverGLVersion
Updates the extensions string.
int DriverVersionPatch
Updates the extensions string.
virtual void SetRenderWindow(vtkRenderWindow *renwin)
Updates the extensions string.
bool IgnoreDriverBugs
Updates the extensions string.
int DriverVersionMajor
Updates the extensions string.
DriverGLVendorIdType
Updates the extensions string.
@ DRIVER_VENDOR_MICROSOFT
virtual ~vtkOpenGLExtensionManager()
Updates the extensions string.
bool GetIgnoreDriverBugs(const char *description)
When set known driver bugs are ignored during driver feature detection.
virtual int GetDriverVersionMajor()
Return the driver's version parts.
virtual int ExtensionSupported(const char *name)
Returns true if the extension is supported, false otherwise.
virtual void LoadAsARBExtension(const char *name)
Similar to LoadCorePromotedExtension().
virtual void Update()
Updates the extensions string.
virtual const char * GetDriverGLVersion()
Updates the extensions string.