Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkOpenGLTexture.h

Go to the documentation of this file.

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