VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkOpenGLHardwareSupport.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00028 #ifndef __vtkOpenGLHardwareSupport_h 00029 #define __vtkOpenGLHardwareSupport_h 00030 00031 #include "vtkObject.h" 00032 00033 class vtkOpenGLExtensionManager; 00034 00035 class VTK_RENDERING_EXPORT vtkOpenGLHardwareSupport : public vtkObject //: public vtkHardwareSupport 00036 { 00037 public: 00038 vtkTypeMacro(vtkOpenGLHardwareSupport,vtkObject); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00041 static vtkOpenGLHardwareSupport *New(); 00042 00044 int GetNumberOfFixedTextureUnits(); 00045 00048 int GetNumberOfTextureUnits(); 00049 00051 bool GetSupportsMultiTexturing(); 00052 00054 00056 vtkGetObjectMacro(ExtensionManager, vtkOpenGLExtensionManager); 00057 void SetExtensionManager(vtkOpenGLExtensionManager* extensionManager); 00059 00060 protected: 00061 vtkOpenGLHardwareSupport(); 00062 ~vtkOpenGLHardwareSupport(); 00063 00064 private: 00065 vtkOpenGLHardwareSupport(const vtkOpenGLHardwareSupport&); // Not implemented. 00066 void operator=(const vtkOpenGLHardwareSupport&); // Not implemented. 00067 00068 bool ExtensionManagerSet(); 00069 00070 vtkOpenGLExtensionManager* ExtensionManager; 00071 }; 00072 00073 #endif