00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMesaTexture.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00026 #ifndef __vtkMesaTexture_h 00027 #define __vtkMesaTexture_h 00028 00029 #include "vtkTexture.h" 00030 00031 class vtkWindow; 00032 class vtkMesaRenderer; 00033 class vtkRenderWindow; 00034 00035 class VTK_RENDERING_EXPORT vtkMesaTexture : public vtkTexture 00036 { 00037 public: 00038 static vtkMesaTexture *New(); 00039 vtkTypeRevisionMacro(vtkMesaTexture,vtkTexture); 00040 virtual void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 void Load(vtkRenderer *ren); 00044 00049 void ReleaseGraphicsResources(vtkWindow *); 00050 00051 protected: 00052 vtkMesaTexture(); 00053 ~vtkMesaTexture(); 00054 00055 unsigned char *ResampleToPowerOfTwo(int &xsize, int &ysize, 00056 unsigned char *dptr, int bpp); 00057 00058 vtkTimeStamp LoadTime; 00059 long Index; 00060 static long GlobalIndex; 00061 vtkRenderWindow *RenderWindow; // RenderWindow used for previous render 00062 private: 00063 vtkMesaTexture(const vtkMesaTexture&); // Not implemented. 00064 void operator=(const vtkMesaTexture&); // Not implemented. 00065 }; 00066 00067 #endif