Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkOpenGLTexture.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOpenGLTexture.h,v $
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 =========================================================================*/
00036 #ifndef __vtkOpenGLTexture_h
00037 #define __vtkOpenGLTexture_h
00038 
00039 #include "vtkTexture.h"
00040 
00041 class vtkWindow;
00042 class vtkOpenGLRenderer;
00043 class vtkRenderWindow;
00044 
00045 class VTK_RENDERING_EXPORT vtkOpenGLTexture : public vtkTexture
00046 {
00047 public:
00048   static vtkOpenGLTexture *New();
00049   vtkTypeRevisionMacro(vtkOpenGLTexture,vtkTexture);
00050   virtual void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053   void Load(vtkRenderer *ren);
00054   
00059   void ReleaseGraphicsResources(vtkWindow *);
00060 
00061 protected:
00062   vtkOpenGLTexture();
00063   ~vtkOpenGLTexture();
00064 
00065   unsigned char *ResampleToPowerOfTwo(int &xsize, int &ysize, 
00066                                       unsigned char *dptr, int bpp);
00067 
00068   vtkTimeStamp   LoadTime;
00069   long          Index;
00070   vtkRenderWindow *RenderWindow;   // RenderWindow used for previous render
00071 private:
00072   vtkOpenGLTexture(const vtkOpenGLTexture&);  // Not implemented.
00073   void operator=(const vtkOpenGLTexture&);  // Not implemented.
00074 };
00075 
00076 #endif