VTK
vtkOpenGLHardwareSupport.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLHardwareSupport.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkOpenGLHardwareSupport_h
27 #define vtkOpenGLHardwareSupport_h
28 
29 #include "vtkRenderingOpenGLModule.h" // For export macro
30 #include "vtkObject.h"
31 
33 
34 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLHardwareSupport :
35  public vtkObject //: public vtkHardwareSupport
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
41  static vtkOpenGLHardwareSupport *New();
42 
46  int GetNumberOfFixedTextureUnits();
47 
52  int GetNumberOfTextureUnits();
53 
57  bool GetSupportsMultiTexturing();
58 
60 
64  vtkGetObjectMacro(ExtensionManager, vtkOpenGLExtensionManager);
65  void SetExtensionManager(vtkOpenGLExtensionManager* extensionManager);
67 
68 protected:
70  ~vtkOpenGLHardwareSupport() VTK_OVERRIDE;
71 
72 private:
73  vtkOpenGLHardwareSupport(const vtkOpenGLHardwareSupport&) VTK_DELETE_FUNCTION;
74  void operator=(const vtkOpenGLHardwareSupport&) VTK_DELETE_FUNCTION;
75 
76  bool ExtensionManagerSet();
77 
78  vtkOpenGLExtensionManager* ExtensionManager;
79 };
80 
81 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
Interface class for querying and using OpenGL extensions.
OpenGL rendering window.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...