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 =========================================================================*/
28 #ifndef __vtkOpenGLHardwareSupport_h
29 #define __vtkOpenGLHardwareSupport_h
30 
31 #include "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkObject.h"
33 
35 
36 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLHardwareSupport : public vtkObject //: public vtkHardwareSupport
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
42  static vtkOpenGLHardwareSupport *New();
43 
45  int GetNumberOfFixedTextureUnits();
46 
49  int GetNumberOfTextureUnits();
50 
52  bool GetSupportsMultiTexturing();
53 
55 
57  vtkGetObjectMacro(ExtensionManager, vtkOpenGLExtensionManager);
58  void SetExtensionManager(vtkOpenGLExtensionManager* extensionManager);
60 
61 protected:
64 
65 private:
66  vtkOpenGLHardwareSupport(const vtkOpenGLHardwareSupport&); // Not implemented.
67  void operator=(const vtkOpenGLHardwareSupport&); // Not implemented.
68 
69  bool ExtensionManagerSet();
70 
71  vtkOpenGLExtensionManager* ExtensionManager;
72 };
73 
74 #endif